HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wptoho/wp-content/plugins/themify-portfolio-post/themify-portfolio-post.php
<?php
/*
Plugin Name:  Themify Portfolio Post
Version:      1.3.0
Author:       Themify
Author URI:   https://themify.me
Description:  This plugin will add Portfolio post type.
Text Domain:  themify-portfolio-post
Domain Path:  /languages
Requires PHP: 7.2
Compatibility: 5.0.0

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 *
 */

defined( 'ABSPATH' ) or die;

/**
 * Initialize the Portfolio Post plugin
 *
 * @since 1.0
 */
function themify_portfolio_post_setup() {
	global $themify_portfolio_posts;
	if(!defined('THEMIFY_PORTFOLIO_POST_VERSION')){
	    define( 'THEMIFY_PORTFOLIO_POST_VERSION', '1.3.0' );
	}
	if( ! defined( 'THEMIFY_PORTFOLIO_POST_DIR' ) ){
		define( 'THEMIFY_PORTFOLIO_POST_DIR', plugin_dir_path( __FILE__ ) );
	}
	if( ! defined( 'THEMIFY_PORTFOLIO_POST_URI' ) ){
		define( 'THEMIFY_PORTFOLIO_POST_URI', plugin_dir_url( __FILE__ ) );
	}
	if( ! defined( 'THEMIFY_PORTFOLIO_POSTS_COMPAT_MODE' ) ){
		define( 'THEMIFY_PORTFOLIO_POSTS_COMPAT_MODE', false );
	}
	include THEMIFY_PORTFOLIO_POST_DIR . 'includes/system.php';

	$themify_portfolio_posts = new Themify_Portfolio_Post( array(
		'url' => THEMIFY_PORTFOLIO_POST_URI,
		'dir' => THEMIFY_PORTFOLIO_POST_DIR,
		'version' => THEMIFY_PORTFOLIO_POST_VERSION
	) );
}
add_action( 'after_setup_theme', 'themify_portfolio_post_setup', 14 );

/**
 * Plugin activation hook
 * Flush rewrite rules after custom post type has been registered
 */
function themify_portfolio_posts_activation() {
	add_action( 'init', 'flush_rewrite_rules', 100 );
}
register_activation_hook( __FILE__, 'themify_portfolio_posts_activation' );