5 years ago (2015-05-29)  Hundred Encyclopedias |   First to comment  3 
post score 0 times, average 0.0

Backlink action hook function

Add_link This action function is executed when the new backlink is added to the database for the first time.Function received parameters: link ID. Delete_link Perform this action function when deleting a backlink.Function received parameters: link ID. Edit_link Perform this action function when editing a backlink.Function received parameters: link ID.

Feed action hook function

Atom_entry In the atom subscription, after displaying a blog post (but before closing the log tag), this action function is executed. Atom_head In the atom subscription, after displaying the subscribed blog information, the action function is executed before the first blog of the blog is displayed. Atom_ns performs this action function (to add a namespace) for the root XML element of the atom subscription. Commentrss2_item In the comment subscription, after displaying a piece of comment information (but before closing the tag of the comment), this action function is executed.Function received parameters: comment ID, log ID. Do_feed_(feed) This action function is executed when the subscription information is generated. The subscription refers to the subscription type (rss2, atom, rdf, etc.).The priority for displaying subscription information should be less than 10.The parameters received by the function: true (comment subscription), or false (log subscription). Rdf_header In the rdf subscription, after displaying the subscribed blog information, this action function is executed before the first blog of the blog is displayed. Rdf_item In the RDF subscription, after displaying a blog post information (but before closing the log tag), this action function is executed. Rdf_ns performs this action function (to add a namespace) for the root XML element of the RDF subscription. Rss_head In the RSS feed, after displaying the subscribed blog information, the action function is executed before the first blog of the blog is displayed. Rss_item In the RSS feed, after displaying a blog post information (but before closing the log tag), execute this action function. Rss2_head In the RSS2 subscription, after displaying the subscribed blog information, the action function is executed before the first blog of the blog is displayed. Rss2_item In the RSS2 subscription, after displaying a blog post information (but before closing the log tag), execute this action function. Rss2_ns performs this action function (to add a namespace) for the root XML element of the RSS2 subscription.

Template-related action hook function

Comment_form Perform this action function in a standard WordPress theme to insert a comment form.Function received parameters: log ID. The do_robots template file chooser executes this action function when it considers this to be a request from robots.txt. Do_rebotstxt Perform this action function before the do_robots function displays the "Disallow" link for the robots.txt file. Get_footer This action function is executed when the template calls the get_footer function before loading the footer.php template file. Get_header Before loading the header.php template file, this action function is executed when the template calls the get_header function. Switch_theme This action function is performed when changing a blog topic.Parameters received by the function: The name of the new topic. Template_redirect executes this action function before determining the template file used to display the requested page so that the plug-in can override the selection of the template file.Example (for reference only, no practical use): Redirects all requests to the all.php template file in the current theme directory.

The wp_footer template executes this action function when the wp_footer function is called near the bottom of the blog page. When the wp_head template calls the wp_head function, the action function wp_head is executed.Wp_head is usually placed at the top of the page template <head> and </head>.The action function does not accept parameters. The wp_meta template file sidebar.php performs this action function when calling the wp_meta function to allow the plugin to add content to the sidebar. Wp_print_scripts WordPress will perform this action function before entering the page header section of the recorded JavaScript script.

 

This article has been printed on copyright and is protected by copyright laws. It must not be reproduced without permission.If you need to reprint, please contact the author or visit the copyright to obtain the authorization. If you feel that this article is useful to you, you can click the "Sponsoring Author" below to call the author!

Reprinted Note Source: Baiyuan's Blog>>https://wangbaiyuan.cn/en/wordpress-function-hook-hook-book-2-2.html

Post comment

Style

No Comment

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW