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

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

featured-images-rss-feed

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

Enable Legacy Email Templates

/** * Revert to legacy ‘HTML’ email template, v1.8.4 and below * * @link https://wpforms.com/developers/how-to-enable-legacy-email-template/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ $settings = (array) get_option( ‘wpforms_settings’, [] ); $settings[ ’email-template’ ] = ‘default’; update_option( ‘wpforms_settings’, $settings );Continue reading