Remove all feeds and return custom 404 page

Your plugin file should consist of exactly this code: <?php /** * Plugin Name: T5 404 Feed * Description: Sends a 404 status code for all feeds and loads the <code>404.php</code> template. */ add_action( ‘template_redirect’, ‘t5_404_feed’, 1 ); function t5_404_feed() { if ( is_feed() ) { status_header( ‘404’ ); header(‘Content-Type: text/html’, true); locate_template( array ( … Read more

Cannot dequeue Elementor Font Awesome css

I ran into the same issue. This snippet worked for me. add_action(‘elementor/frontend/after_register_styles’,function() { foreach( [ ‘solid’, ‘regular’, ‘brands’ ] as $style ) { wp_deregister_style( ‘elementor-icons-fa-‘ . $style ); } }, 20 ); You may only need the solid and regular dequeued. add_action(‘elementor/frontend/after_register_styles’,function() { foreach( [ ‘solid’, ‘regular’ ] as $style ) { wp_deregister_style( ‘elementor-icons-fa-‘ . … Read more

Automatic email message after manual user approval

First, add a custom Action Hook that is triggered whenever the user is updated. For example, when custom meta fields are updated in WordPress, some action hooks such as: updated_{$meta_type}_meta, updated_postmeta, etc. So if you’re using the ACF plugin, you can hook into the ‘acf/save_post’ action hook. The action hook lets you do something before … Read more