How to change Akismet commenter privacy notice?

Aha, I finally got it working: <?php /* Plugin Name: Akismet Better Privacy Notice Description: Inform users about what’s actually happening with their data */ add_filter ( ‘akismet_comment_form_privacy_notice_markup’, ‘better_display_comment_form_privacy_notice’ ); function better_display_comment_form_privacy_notice() { echo sprintf( ‘<p class=”akismet_comment_form_privacy_notice”>’ . ‘Warning: This site uses Akismet to filter spam.’ . ‘ Until or unless I can find a … Read more

How to display a link in the footer section

If you look in the plugin’s directory plugins/wpmp_switcher/wpmp_switcher.php on line 53 you will see this: add_action(‘wp_footer’, ‘wpmp_switcher_wp_footer’); so you can either remove this action and call it in your theme your self with: remove_action(‘wp_footer’, ‘wpmp_switcher_wp_footer’); or you just make sure that wp_footer(); is inside your wrapper>footer divs.

Filter dashboard custom post listing by user

pre_get_posts is correct. the code from will prevent any non-admin from seeing anyone else’s posts. http://blog.rutwick.com/display-only-the-posts-authored-by-the-current-wp-user-on-the-posts-page-in-the-back-end to limit that to only 1 post type you’d add in one more condition and check $typenow == ‘your_custom_post_type’: add_action(‘pre_get_posts’, ‘filter_posts_list’); function filter_posts_list($query) { //$pagenow holds the name of the current page being viewed global $pagenow, $typenow; //$current_user uses … Read more

Change Title Type

as this is a default field, i don’t think it is possible to achieve what you want with the help function hooks, however you can do this by editing edit-form-advanced.php file inside wp-admin folder, the code you may want to edit is located in line # 291, this is the input type for title field … Read more

Fire a hook programmatically

To fire a hook you can use following functions: do_action – executes a hook created by add_action. do_action_ref_array – execute functions hooked on a specific action hook, specifying arguments in an array. This function is identical to do_action, but the arguments passed to the functions hooked to $tag are supplied using an array. If you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)