芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/wp-content/themes/odefy/functions.php
'purchase', 'email' => 'email', 'success' => 1 ] ); /** * Sequence of theme specific actions */ add_action('after_setup_theme', function() { $content_width = $content_width ?? 940; }, 0); add_action('after_setup_theme', function() { add_theme_support('title-tag'); add_theme_support( 'html5', [ 'gallery', 'caption', ]); }); add_action('init', function() { add_post_type_support('page', 'excerpt'); }); /** Add a pingback url auto-discovery for single posts, pages or attachments. */ add_action('wp_head', function() { if (is_singular() && pings_open()) { echo '
'; } }); add_action( 'current_screen', function() { add_editor_style( 'css/font-awesome-5.min.css' ); } ); add_action( 'wgl/preloader', 'WGL_Framework::preloader' ); add_action( 'wgl/after_main_content', 'odefy_after_main_content' ); /** * Sequence of theme specific filters */ add_filter( 'wgl/header/enable', 'odefy_header_enable' ); add_filter( 'wgl/page_title/enable', 'odefy_page_title_enable' ); add_filter( 'wgl/footer/enable', 'odefy_footer_enable' ); add_filter( 'comment_form_fields', 'odefy_comment_form_fields' ); add_filter('mce_buttons_2', function($buttons) { array_unshift($buttons, 'styleselect'); return $buttons; }); add_filter('wgl/redux/letter_spacing_unit', function($unit) { return 'em'; }); add_filter('tiny_mce_before_init', 'odefy_tiny_mce_before_init'); add_filter('mce_buttons_2', 'odefy_tiny_mce_buttons_2' ); add_filter('wp_list_categories', 'odefy_categories_postcount_filter'); add_filter('woocommerce_layered_nav_term_html', 'odefy_categories_postcount_filter'); add_filter('get_archives_link', 'odefy_render_archive_widgets', 10, 6); add_filter('wgl/enqueue_shortcode_css', function( $styles ) { global $odefy_dynamic_css; if ( ! isset( $odefy_dynamic_css[ 'style' ] ) ) { $odefy_dynamic_css = []; $odefy_dynamic_css['style'] = $styles; } else { $odefy_dynamic_css['style'] .= $styles; } }); add_filter('widget_types_to_hide_from_legacy_widget_block', function () { return []; }, 10); add_filter( 'wpcf7_autop_or_not', '__return_false'); add_filter('woocommerce_create_pages', function ($pages) { unset($pages['checkout']); unset($pages['cart']); return $pages; }, 10);