| | |
| | | use JVBase\admin\SEOAdmin; |
| | | use JVBase\base\SchemaHelper; |
| | | use JVBase\blocks\CustomBlocks; |
| | | use JVBase\inc\rest\routes\OpenStreetMaps; |
| | | use JVBase\JVB; |
| | | use JVBase\managers\AdminPages; |
| | | use JVBase\managers\Approvals; |
| | |
| | | //const JVB_TESTING = false; |
| | | |
| | | //if (!JVB_TESTING) { |
| | | // add_filter('show_admin_bar', '__return_false'); |
| | | add_filter('show_admin_bar', '__return_false'); |
| | | //} |
| | | |
| | | |
| | |
| | | /** |
| | | * Utilities |
| | | */ |
| | | //require(JVB_DIR . '/cleanup.php'); |
| | | require(JVB_DIR . '/cleanup.php'); |
| | | require(JVB_DIR . '/inc/admin/_setup.php'); |
| | | |
| | | require(JVB_DIR . '/JVBase.php'); |
| | |
| | | { |
| | | NewsRoutes::getInstance(); |
| | | } |
| | | |
| | | OpenStreetMaps::getInstance(); |
| | | } |
| | | |
| | | |
| | |
| | | ); |
| | | } |
| | | |
| | | add_action( 'doing_it_wrong_run', function ( $function_name ) { |
| | | if ( '_load_textdomain_just_in_time' === $function_name ) { |
| | | // This will print the full execution path to your screen or log |
| | | debug_print_backtrace(); |
| | | } |
| | | } ); |
| | | |
| | | |
| | | add_filter('the_seo_framework_sitemap_exclude_ids', 'jvb_maybe_exclude_singles', 8, 1); |
| | | function jvb_maybe_exclude_singles(array $IDs):array |