Wordpress

How To Allow Contributors Edit Their WordPress Posts After Approved

To Allow Contributors Edit Their WordPress Posts After Approved. This method requires you to add code to your WordPress files. You’ll need to add the following code to your WordPress theme’s functions.php file This code snippet needs to run only once which means you can save it and then delete it. It will allow contributors to …

How To Allow Contributors Edit Their WordPress Posts After Approved Read More »

How to Limit or Restrict search for blog post only in WordPress

The below snippet allows you to limit the WordPress search functionality, so you show only posts. It’s really useful on blogs because, by default, WordPress will also search pages and media. Open your functions.php file and add the following codes: function searchfilter($query) { if ($query->is_search && !is_admin() ) { $query->set(‘post_type’,array(‘post’,’page’)); } return $query; } add_filter(‘pre_get_posts’,’searchfilter’); …

How to Limit or Restrict search for blog post only in WordPress Read More »

Display custom message below or above place order button in wordpress woo commerce

Sometime we have to display some custom message above or below place order button on checkout page, on a woocommerce site. Codes given below are used for that, hope you like it, and do share your own contribution if you have any. Thanks for reading this blog. For displaying message above placer order button add_action( …

Display custom message below or above place order button in wordpress woo commerce Read More »