Disable Posts in Admin

add_action( ‘admin_bar_menu’, function ( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘new-post’ ); }, 100 ); add_action( ‘admin_menu’, function () { remove_menu_page( ‘edit.php’ ); } );Continue reading

Disable the Excerpt in RSS Feeds

// Make sure we display the excerpt in the feed. add_filter( ‘pre_option_rss_use_excerpt’, ‘__return_true’ ); // Remove the excerpt content for feeds. add_filter( ‘the_excerpt_rss’, ‘__return_empty_string’ );Continue reading

Add recaptcha policy to all gravity forms

add_filter( ‘gform_submit_button’, ‘add_recaptcha_branding’, 10, 2 ); function add_recaptcha_branding( $button, $form ) { return $button .= ‘ This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. ‘; }Continue reading

Untitled Snippet

i want a on off button that when press each other send logical true if press on and false when press off …i want this for local web page that control IoT thing with microcontroller that writted with c++ and…Continue reading

Disable Gutenberg Styles

// disable gutenberg frontend styles @ https://m0n.co/15 function disable_gutenberg_wp_enqueue_scripts() { wp_dequeue_style(‘wp-block-library’); wp_dequeue_style(‘wp-block-library-theme’); wp_dequeue_style(‘global-styles’); wp_dequeue_style(‘classic-theme-styles’); } add_filter(‘wp_enqueue_scripts’, ‘disable_gutenberg_wp_enqueue_scripts’, 100);Continue reading

Disable WPCode Conversion Pixels addon global scripts

add_filter( ‘wpcode_get_snippets_for_location’, function ( $snippets, $location ) { if ( ‘site_wide_header’ !== $location ) { return $snippets; } foreach ( $snippets as $key => $snippet ) { if ( ! is_int( $snippet->id ) && false !== strpos( $snippet->id, ‘pixel_’ )…Continue reading

Add Portal to Queue List Button for Event Update Cron WORKS!!!

/** * A WPCode Snippet that creates a shortcode to display a form * that allows changing the ACF field “eios-queue” and saving the post. */ // Shortcode to be used in the post/page content add_shortcode(‘change_eios_queue_form’, ‘display_change_eios_queue_form’); function display_change_eios_queue_form() {…Continue reading