| Server IP : 104.21.20.47 / Your IP : 104.23.197.164 Web Server : Microsoft-IIS/7.5 System : Windows NT WIN-HN0MTSF2AF1 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) AMD64 User : IWPD_11(bayt-altogg) ( 0) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/bayt-altoggar.com/httpdocs/wp-content/themes/customify/ |
Upload File : |
<?php
/**
* Customify functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package customify
*/
/**
* Same the hook `the_content`
*
* @TODO: do not effect content by plugins
*
* 8 WP_Embed:run_shortcode
* 8 WP_Embed:autoembed
* 10 wptexturize
* 10 wpautop
* 10 shortcode_unautop
* 10 prepend_attachment
* 10 wp_filter_content_tags || wp_make_content_images_responsive
* 11 capital_P_dangit
* 11 do_shortcode
* 20 convert_smilies
*/
global $wp_embed;
add_filter('customify_the_content', array($wp_embed, 'run_shortcode'), 8);
add_filter('customify_the_content', array($wp_embed, 'autoembed'), 8);
add_filter('customify_the_content', 'wptexturize');
add_filter('customify_the_content', 'wpautop');
add_filter('customify_the_content', 'shortcode_unautop');
if (function_exists('wp_filter_content_tags')) {
add_filter('customify_the_content', 'wp_filter_content_tags');
} else {
add_filter('customify_the_content', 'wp_make_content_images_responsive');
}
add_filter('customify_the_content', 'capital_P_dangit');
add_filter('customify_the_content', 'do_shortcode');
add_filter('customify_the_content', 'convert_smilies');
/**
* Same the hook `the_content` but not auto P
*
* @TODO: do not effect content by plugins
*
* 8 WP_Embed:run_shortcode
* 8 WP_Embed:autoembed
* 10 wptexturize
* 10 shortcode_unautop
* 10 prepend_attachment
* 10 wp_filter_content_tags || wp_make_content_images_responsive
* 11 capital_P_dangit
* 11 do_shortcode
* 20 convert_smilies
*/
add_filter('customify_the_title', array($wp_embed, 'run_shortcode'), 8);
add_filter('customify_the_title', array($wp_embed, 'autoembed'), 8);
add_filter('customify_the_title', 'wptexturize');
add_filter('customify_the_title', 'shortcode_unautop');
if (function_exists('wp_filter_content_tags')) {
add_filter('customify_the_title', 'wp_filter_content_tags');
} else {
add_filter('customify_the_title', 'wp_make_content_images_responsive');
}
add_filter('customify_the_title', 'capital_P_dangit');
add_filter('customify_the_title', 'do_shortcode');
add_filter('customify_the_title', 'convert_smilies');
// Composer autoload — exposes PressMaximum\DashboardKit\* used by the
// new admin dashboard. Missing vendor/ is non-fatal so dev environments
// without `composer install` can still boot the theme.
$customify_autoload = get_template_directory() . '/vendor/autoload.php';
if ( file_exists( $customify_autoload ) ) {
require_once $customify_autoload;
}
unset( $customify_autoload );
// Include the main Customify class.
require_once get_template_directory() . '/inc/class-customify.php';
/**
* Main instance of Customify.
*
* Returns the main instance of Customify.
*
* @return Customify
*/
function Customify()
{
// phpc:ignore WordPress.NamingConventions.ValidFunctionName.
return Customify::get_instance();
}
Customify();