This is a HTML snippet
This is the text Emphasis.Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
This is the text Emphasis.Continue reading
add_action( ‘admin_enqueue_scripts’, ‘aioseo_editor_pin_styles’ ); function aioseo_editor_pin_styles() { $custom_css = ‘@media (min-width: 782px){.interface-complementary-area-header .components-button.has-icon { display: flex !important; }}’; wp_add_inline_style( ‘wp-edit-post’, $custom_css ); }Continue reading
/** * Setting default template for post type as a pattern php file * */ function awesome_register_podcast_template() { $post_type_object = get_post_type_object( ‘podcast’ ); $post_type_object->template = array( array( ‘core/pattern’, array( ‘slug’ => ‘vivek/podcast-audio’, ) ), ); } add_action( ‘init’, ‘awesome_register_podcast_template’ );Continue reading
add_action( ‘admin_init’, function() { // remove the color scheme picker remove_action( ‘admin_color_scheme_picker’, ‘admin_color_scheme_picker’ ); // force all users to use the “Ectoplasm” color scheme add_filter( ‘get_user_option_admin_color’, function() { return ‘nwwp’; }); });Continue reading
add_action( ‘admin_menu’, ‘aioseo_hide_search_stats_menu’, 99999 ); function aioseo_hide_search_stats_menu() { global $submenu; if ( ! isset( $submenu[‘index.php’] ) ) { return; } foreach ( $submenu[‘index.php’] as $index => $props ) { if ( ! empty( $props[2] ) && admin_url( ‘/admin.php?page=aioseo-search-statistics’ ) ===…Continue reading
add_filter( ‘wpcode_snippets_per_page’, function() { return 5; });Continue reading