Disable plugin for administrator

I just tested your code and it works, so it seems one of the two following things. You are placing the code in the wrong place, make sure you put that code at the bottom of the functions.php file of your theme. Or maybe the functions.php file of your theme is having problems, in which … Read more

Plugin json page

You can hook before the template is loaded and output page content directly: function wpd_output_json_page(){ if( is_page( ‘Page Json’ ) ){ global $post; echo $post->post_content; die; } } add_action( ‘template_redirect’, ‘wpd_output_json_page’ );

Not displaying Woocommerce product page in lightbox

you are adding the name of product in a’s tag of href <a class=”modal-link” href=”https://wordpress.stackexchange.com/product/” . $wslug . ‘”/>View</a> you need to add products html link in this like below <a class=”modal-link” href=”https://wordpress.stackexchange.com/questions/312841/example.html”/>View</a> i hope it work. lightbox link ex: <a href=”http://www.yoursite.com/yourpage.htm” class=”html5lightbox” data-width=”960″ data-height=”600″>Link to Page</a>

Simulate Update User button click

Thanks must go to WebElaine as her comment lead me on the right path to solving this. The issue was when the pmprommpu_addMembershipLevel() adds the membership level it sets the endate to 0000-00-00 00:00:00 running a $wpdb->update to set this to NULL fixed the problem.