Disable plugin If slug contains specific word

I found this alternative: $url = $_SERVER[“REQUEST_URI”]; $isItSlide = strpos($url, ‘revslider’); $isItBlog = strpos($url, ‘post.php’); if ($isItSlide!==false) { deactivate_plugins( ‘/resize-image-after-upload/resize-image-after-upload.php’ ); } if ($isItBlog!==false) { activate_plugins( ‘/resize-image-after-upload/resize-image-after-upload.php’ ); }

Post URL based on Custom Post Types variables

Instead of creating a new tag, I would suggest just writing code to create the slug on a per-post basis using ACF’s save_post function. //Update Cars slug field: function wpse_post_slug_updater( $post_id ) { if( get_post_type() == ‘cars’) { $my_post = array(); $my_post[‘ID’] = $post_id; $my_post[‘post_title’] = esc_html(get_the_title($post_id)); $my_new_slug = get_field(‘brand’) . ‘ ‘ . get_field(‘license_plate’); … Read more

Is it unethical to remove another plugin’s meta keys?

I don’t see anything unethical in this… There are many plugins that remove some data from DB as part of their optimization process. Also there are plugins for some migrations (like qTranslate -> WPML and similar). They also can remove data of previous plugin after migration is done. The only thing I would be very … Read more

Creating a functionality plugin to edit seriously simple podcasting

This is what the ssp_feed_item_itunes_summary filter is for. It lets you change that value through a separate plugin/function. You can read more about filters here. So rather than making the edit you’ve made, add a filter to ssp_feed_item_itunes_summary: function wpse_326975_itunes_summary( $itunes_summary, $post_id ) { $itunes_summary = get_the_excerpt( $post_id ); return $itunes_summary; } add_filter( ‘ssp_feed_item_itunes_summary’, ‘wpse_326975_itunes_summary’, … Read more