Ajax call does not work for this custom code

Instead of doing: data: {action: ‘performers’, catname: catname} Try: data: ‘action=performers&catname=”+catname; You may also want to define “catname” globally, i am not sure if scope is an issue with your ajax handler but this could be why it is not being set. As an example try to alert catname within the ajax handler above cache=false; … Read more

What triggers these wordpress queries on my homepage?

Are the queries themselves displayed or are the results displayed? If the results of those queries are being output onto your homepage it’s a potential security vulnerability. The query returns user data including username and password hash for user ID 1 of the wp_users table, which is the administrator user that WordPress creates when first … Read more

Looking for Hook that is fired after a plugin or wp upgrade is installed/updated

A chance is the update_feedback filter hook. He is usable after core and plugin update, I think. You can hook in and start your custom doing. See the follow example, but only a code for understand my bad english; he don’t work. add_filter( ‘update_feedback’, ‘fb_add_feedback’ ); function fb_add_feedback( $feedback ) { // start my custom … Read more

Remove ‘Publish to Facebook’ checkbox for Facebook page publish plugin

That function is used to render button and it’s called inside fpp_post_submitbox_start_action(), which does some conditional check and is hooked into post_submitbox_start action. First you need to remove plugins original action and use your own with conditional to render button. See code example below. // Remove original action remove_action( ‘post_submitbox_start’, ‘fpp_post_submitbox_start_action’ ); /** * Renders … Read more

permalink and $_GET

Is the reason you are adding the post_id to the URL because you are you trying to access the post_id variable in the template? You can do so much more easily by accessing it in the Loop of your template file <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); // Two … Read more

Metaboxes not saving data

There were three issues: The first wasn’t visible in the code presented. a wp_register_styles call was put into the constructor, which caused errors and somehow prevented saving post metadata. Second, the date field was a HTML5 date field, which conflisted with jQuery’s datepicker. Changing it to a text field fixed that. Third, the final if … Read more