My WordPress website was hacked [closed]

It’s good that you’ve regained access to your website, but without any further action, you’ll get hacked again. These are steps to take, in order to clean, and secure your site: do not panic ( very important ) do not remove anything yourself install and activate WordFence Security plugin in Wordfence -> Options, select everything … Read more

Check if SEO plugin installed

Hi @Liam:, What you are going to need to do is create a list of the top SEO plugins and themes and then document how each implements meta and develop a strategy for each. And/or maybe you can ask your users upon activation if they are using an SEO plugin much like Akismet asks users … Read more

Add menu page issues (permissions & position)

you can do something like: // create your own page add_menu_page(‘my-page’, ‘My Page’, ‘My Page’, ‘parent-slug’, ‘my_plugin_options’, ”, ’10’); // create the subpage under my-page add_submenu_page(‘parent-slug’, ‘Sidebars’, ‘Sidebars’, ‘manage_options’, __FILE__, array(‘sidebar_generator’,’admin_page’)); Note that the last parameter on add_menu_page is a 10. The higher the number the lower the position of the menu item. HTH

Change the display of Settings API (do_settings_sections)

There are no hooks to modify the output of do_settings_sections(). Hence the only option you have is to write custom versions of the functions do_settings_sections() and do_settings_fields(). They are located in /wp-admin/includes/template.php, lines 1159-1174 and 1190-1207 (wordpress version 3.2.1), respectively (do not modify them there). You could (not saying it is necessarily advisable, consider compatibility … Read more

AJAX call – failling to call do_action

Aside from @Tareq answer (which is your main problem), you should wp_register_script and the wp_enqueue_script load your local copy of jQuery instead of the one from Google CDN localize your script using wp_localize_script

add_filter doesn’t work

register_activation_hook and register_deactivation_hook refer to when the plugin is activated and deactivated, respectively, and only fire in those two instances. They’re to be used, for example, when you need to add a database table (and take it back down). You don’t need to remove your filters, either. Your plugin can just be shortened to: function … Read more