Site Security & Optimization

// Disable Yoast SEO HTML Comments add_filter(‘wpseo_debug_markers’, ‘__return_false’); // Disable XML-RPC add_filter(‘xmlrpc_enabled’, ‘__return_false’); // Remove WordPress Version Number add_filter(‘the_generator’, ‘__return_empty_string’); // Disable Plugin & Theme Editor if (!defined(‘DISALLOW_FILE_EDIT’)) { define(‘DISALLOW_FILE_EDIT’, true); } // Disable Author Archives add_action(‘template_redirect’, function(){ global $wp_query;…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 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