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
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
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 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
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
function featuredtoRSS($content) { global $post; if ( has_post_thumbnail( $post->ID ) ){ $content = '<div>' . get_the_post_thumbnail( $post->ID, 'large', array( 'style' => 'margin-bottom: 15px;' ) ) . '</div>' . $content; } return $content; } add_filter('the_excerpt_rss', 'featuredtoRSS'); add_filter('the_content_feed', 'featuredtoRSS');Continue reading
/** * 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
add_filter( ‘charitable_sanitize_suggested_amount_description’, ‘charitable_disable_sanitize_suggested_amount_description’ ); function charitable_disable_sanitize_suggested_amount_description() { return false; }Continue reading
add_filter(‘rest_endpoints’, function ($endpoints) { if (isset($endpoints[‘/wp/v2/users’])) { unset($endpoints[‘/wp/v2/users’]); } return $endpoints; }); add_action(‘template_redirect’, function () { if (is_author()) { wp_redirect(home_url(), 301); exit; } });Continue reading
add_filter(‘rest_endpoints’, function ($endpoints) { if (isset($endpoints[‘/wp/v2/users’])) { unset($endpoints[‘/wp/v2/users’]); } return $endpoints; }); add_action(‘template_redirect’, function () { if (is_author()) { wp_redirect(home_url(), 301); exit; } });Continue reading