In time of worpress customization or plugin development or plugin customization in wordpress we sometime using the use of several hooks. There are two types of wordpress hooks action hook an filter hook. We are going to mention some of the important hooks.

Lets discuss wp_head hook : the following actions we can performed using the wp_head hook. These are default action by wordpress.

add_action( ‘wp_head’,’noindex’, 1);
add_action( ‘wp_head’,’wp_print_styles’, 8);
add_action( ‘wp_head’,’_wp_render_title_tag’, 1);
add_action( ‘wp_head’,’wp_enqueue_scripts’, 1);
add_action( ‘wp_head’,’feed_links’, 2);
add_action( ‘wp_head’,’feed_links_extra’, 3);
add_action( ‘wp_head’,’rsd_link’);

add_action( ‘wp_head’,’locale_stylesheet’);

add_action( ‘wp_head’,’print_emoji_detection_script’, 7);

add_action( ‘wp_head’,’wp_print_head_scripts’, 9);
add_action( ‘wp_head’,’wp_generator’);
add_action( ‘wp_head’,’rel_canonical’);
add_action( ‘wp_head’,’wp_shortlink_wp_head’, 10, 0 );
add_action( ‘wp_head’,’wp_site_icon’, 88);

Leave comment

Your email address will not be published. Required fields are marked with *.