{"id":4465,"date":"2018-04-03T13:18:28","date_gmt":"2018-04-03T13:18:28","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=4465"},"modified":"2021-08-11T11:15:38","modified_gmt":"2021-08-11T11:15:38","slug":"hooks-in-ampforwp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/hooks-in-ampforwp\/","title":{"rendered":"Hooks in AMPforWP"},"content":{"rendered":"\n<p><strong>Here is the complete list of all our hooks including their functionalities:<\/strong><\/p>\n\n\n\n<ol><li><strong><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/hooks-in-ampforwp\/#sitewide-these-hooks-will-run-throughout-the-amp-website\">Sitewide<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/hooks-in-ampforwp\/#homepage-these-hooks-will-run-only-on-the-homepage\">HomePage<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/hooks-in-ampforwp\/#single-php-these-hooks-will-execute-on-posts-and-pages\">single.php<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/hooks-in-ampforwp\/#archive-php-these-hooks-will-execute-on-archive-pages\">archive.php<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/hooks-in-ampforwp\/#search-php-these-hooks-will-run-on-search-pages\">search.php<\/a><\/strong><\/li><li><strong><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/hooks-in-ampforwp\/#amp-panel-settings-these-hooks-will-run-throughout-the-amp-option-panel\">AMP Option Panel Settings<\/a><\/strong><\/li><li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/hooks-in-ampforwp\/#hooks-in-facebook-instant-articles\"><strong>Hooks in Facebook Instant Articles<\/strong><\/a><\/li><\/ol>\n\n\n\n<h3><mark style=\"background-color:#f9fbe7;\"><span style=\"color: #000000;\"><strong>Sitewide &#8211; These hooks will run throughout the AMP website <\/strong><\/mark><\/h3>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td> <strong>Actions Hooks<\/strong> <\/td><td> <strong>Description<\/strong> <\/td><\/tr><tr><td><strong> amp_post_template_head <\/strong><\/td><td><br> It is used to add extra things in Head section of AMP which will come in handy if you want to add extra metas, JS of AMP components, etc.., <br><br><\/td><\/tr><tr><td><strong>amp_post_template_css <\/strong><\/td><td> <br>It is used to add extra CSS to your AMP pages<br><br> <\/td><\/tr><tr><td><strong>ampforwp_body_beginning <\/strong><\/td><td> <br>It is executed right after the beginning of Body tag which can be very useful to add things like Analytics.<br><br> <\/td><\/tr><tr><td> <br><strong>ampforwp_after_header <\/strong><br><br><\/td><td> It is executed right after the header section of AMP <\/td><\/tr><tr><td> <br><strong>below_the_header_design_1 [ Design-1 only ] <\/strong><br><br><\/td><td> It is executed right after the header section of AMP <\/td><\/tr><tr><td> <br><strong>amp_post_template_above_footer <\/strong><br><br><\/td><td>It executes right before the footer.php <\/td><\/tr><tr><td> <br><strong>amp_post_template_footer <\/strong><br><br><\/td><td> It executes after the footer and just before the end of the body tag. <\/td><\/tr><tr><td> <br><strong>pre_amp_render_post <\/strong><br><br><\/td><td> This hook will only work in the AMP environment. <\/td><\/tr><tr><td> <br><strong>amp_experiment_meta <\/strong><br><br><\/td><td>With the help of this hook, you can add additional meta tags<\/td><\/tr><tr><td> <br><strong>amp_meta <\/strong><br><br><\/td><td>With the help of this hook, you can add meta tags<\/td><\/tr><tr><td><strong>ampforwp_after_amp_menu<\/strong><br><br><\/td><td> <br>With the help of this hook, you can add additional meta tags in the header section<br><br><\/td><\/tr><tr><td> <br><strong>amp_before_footer <\/strong><br><br><\/td><td> <br>With the help of this hook, you can add additional meta tags in the footer section<br> <br><br><\/td><\/tr><tr><td> <br><strong>amp_footer_link<\/strong><br><strong> <\/strong><br><\/td><td> <br>With the help of this hook, you can add a link in the footer section <br><br> <\/td><\/tr><tr><td> <br><strong>amp_sidebar_start <\/strong><br><br><\/td><td> <br>With the help of this hook, you can add additional information at the beginning of the sidebar <br><br><\/td><\/tr><tr><td> <br><strong>amp_sidebar_end <\/strong><br><br><\/td><td> <br>With the help of this hook, you can add additional information at the end of the sidebar  <br><br><\/td><\/tr><tr><td> <br><strong>ampforwp_before_meta_info_hook [ Design 1,2,3 ]<\/strong><br> <\/td><td> <br>With the help of this hook, you can add additional meta tags in the beginning  [Only in Design 1,2,3]<br><br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"homepage-these-hooks-will-run-only-on-the-homepage\"><mark style=\"background-color:#f9fbe7;\"><span style=\"color: #000000;\"><strong>HomePage &#8211; These hooks will run only on the homepage<\/strong><\/mark><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td> <strong>Actions Hooks<\/strong><br> <\/td><td><strong>Description<\/strong> <\/td><td><strong>Location<\/strong><\/td><\/tr><tr><td> <br><strong>ampforwp_home_above_loop<\/strong> <\/td><td> <br>This hook is used to add the things above the Homepage loop.<br><br> <\/td><td> <br><strong>index.php<\/strong> <\/td><\/tr><tr><td> <br><strong>amp_before_loop [ Swift ] <\/strong><\/td><td> <br>This hook executes before the loop (Home and Archive). It can be used to add anything just above the loop.<br><br> <\/td><td> <br><strong>index.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_post_before_loop <\/strong><\/td><td> <br>This hook executes before the loop (Home and Archive). It can be used to add anything just above the loop.<br><br> <\/td><td> <br><strong>index.php<\/strong> <\/td><\/tr><tr><td><br><strong>ampforwp_between_loop <\/strong><\/td><td> <br>This hook executes in between the loop (Home and Archive). It can be used to add anything in between the loop. It has $count variable as a parameter which can be used to count the number of posts which can help greatly to decide where exactly you want to use this hook in the loop.<br><br> <\/td><td> <br><strong>index.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_post_after_loop <\/strong><\/td><td> <br>This hook executes after the loop (Home and Archive). It can be used to add anything just below the loop.<br><br> <\/td><td> <br><strong>index.php<\/strong> <\/td><\/tr><tr><td><strong>amp_after_loop [ Swift ]<\/strong><\/td><td> <br>This hook executes after the loop (Home and Archive). It can be used to add anything just below the loop.<br><br> <\/td><td> <br><strong>index.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_home_below_loop <\/strong><\/td><td> <br>This hook is used to add the things below the Homepage loop.<br><br> <\/td><td> <br><strong>index.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_area_above_loop [ Design 3] <\/strong> <\/td><td><br>With the help of this hook, you can add additional information above the loop [only in Design 1,2,3]<br> <br><br><\/td><td> <br><strong>index.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_frontpage_above_loop \ufeff<\/strong> <\/td><td> <br>This hook executes before the content of Frontpage.<br>(These hooks will run on Custom FrontPage of Design 1,2 and 3 only) <br><br><\/td><td> <br><strong>frontpage.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_frontpage_below_loop \ufeff<\/strong> <\/td><td> <br>This hook executes after the content of Frontpage.<br>( These hooks will run on Custom FrontPage of Design 1,2 and 3 only ) <br><br><\/td><td> <br><strong>frontpage.php<\/strong> <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3><mark style=\"background-color:#f9fbe7;\"><span style=\"color: #000000;\"><strong>single.php &#8211; <\/strong> <strong>These hooks will execute on<\/strong> <strong> Posts and Pages <\/strong><\/mark><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td> <strong>Actions Hooks<\/strong><br> <\/td><td><strong>Description<\/strong> <\/td><td><strong>Location<\/strong><\/td><\/tr><tr><td> <br><strong>ampforwp_post_before_design_elements <\/strong><br><br><\/td><td><br> This hook runs before the elements like breadcrumb, title, content meta-info etc which are present in elements folder of each design. <br><br><\/td><td> <br><strong>single.php <\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_post_after_design_elements <\/strong><br><br><\/td><td><br> This hook runs after the elements like breadcrumb, title, content meta-info etc which are present in elements folder of each design. <br><br><\/td><td> <br><strong>single.php <\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_single_design_type_handle_d1 <\/strong><br><br><\/td><td> This hook executes after the Next-Previous Links. <\/td><td> <br><strong>single.php <\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_below_author_box <\/strong><br><br><\/td><td> <br>With the help of this hook, you can add additional information below the author box<br><br><\/td><td> <br><strong>single.php <\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_push_notification_widget <\/strong><br><br><\/td><td>This hook is used to add web push widget markup in amp<\/td><td> <br><strong>single.php <\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_global_after_footer <\/strong><br> <\/td><td> <br>This hook executes at the end of the footer i.e., footer.php<br> <\/td><td> <br><strong>footer.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_header_top_design{designno} <\/strong><br> <\/td><td> This hook executes at the beginning of Header  <\/td><td> <br><strong>header-bar.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_header_search [ Design 1,2,3 ] <\/strong> <\/td><td> It executes the search button present in the header. You can use it to add your own search button as well. <\/td><td> <br><strong>header-bar.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_call_button [ Design 1,2,3 ] <\/strong> <\/td><td> <br>It executes the call button present in the header. You can use it to add your own call button as well. <\/td><td> <br><strong>header-bar.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_header_bottom_design{designno} <\/strong> <\/td><td> <br>This hook executes at the end of the Header. <\/td><td> <br><strong>header-bar.php<\/strong> <\/td><\/tr><tr><td> <br> <br><strong>ampforwp_before_comment_hook<\/strong> <br><\/td><td>  <br>This hook executes right before the Comments. <br><br><\/td><td> <br>  <br><strong>comments.php<\/strong> <\/td><\/tr><tr><td>  <br><strong>ampforwp_reply_comment_form<\/strong> <br><\/td><td>  <br>This hook executes right after the content of each comment. <br><\/td><td>  <br><strong>comments.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_after_comment_hook<\/strong> <\/td><td>  <br>This hook executes right after the Comments. <br> <\/td><td>  <br><strong>comments.php<\/strong> <\/td><\/tr><tr><td>  <br><strong>ampforwp_inside_post_content_before [Design-1]<\/strong> <br><br><\/td><td> <br>This hook executes before the content. It works in Design-1 only. <\/td><td> <br><strong>content.php<\/strong> <\/td><\/tr><tr><td>  <br><strong>ampforwp_before_post_content<\/strong> <br><\/td><td>  <br>This hook executes before the content. <\/td><td> <br><strong>content.php<\/strong> <\/td><\/tr><tr><td> <br>  <br><strong>ampforwp_after_post_content<br><\/strong> <\/td><td>  <br>This hook executes after the content. <\/td><td>  <br><strong>content.php<\/strong> <\/td><\/tr><tr><td> <br> <br><strong>ampforwp_before_content_hook<\/strong> <br><\/td><td> <br>This hook executes before the content.<br><br> <\/td><td>  <br><strong>content.php<\/strong> <br><\/td><\/tr><tr><td> <br><strong>ampforwp_before_featured_image_hook<\/strong> <\/td><td> <br>It executes right before the featured image in Single and Custom FrontPage. <\/td><td> <br><strong>featured-image.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_after_featured_image_hook<\/strong> <\/td><td> <br>It executes right after the featured image in Single and Custom FrontPage. <\/td><td> <br><strong>featured-image.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_above_related_post<\/strong> <\/td><td> <br>This hook executes right above the Related Posts in Single.<br> <\/td><td> <br><strong>related-posts.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_between_related_post<\/strong> <\/td><td> <br>This hook executes between the Related Posts in Single. It can be used to add things like Ads in between the related posts of single.<br> <\/td><td> <br><strong>related-posts.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_below_related_post<br><\/strong> <\/td><td> <br>This hook executes right below the Related Posts in Single.<br> <\/td><td> <br><strong>related-posts.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_before_social_icons_hook<\/strong> <\/td><td> <br>It runs before the Social icons in Single. <\/td><td> <br><strong>social-icons.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_after_social_icons_hook<\/strong> <\/td><td> <br>It runs after the Social icons in Single.<br> <\/td><td> <br><strong>social-icons.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_above_the_title<\/strong><br><br> <\/td><td> <br>This hook runs before the Title in Single.<br> <\/td><td> <br><strong>title.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_below_the_title<\/strong><br> <\/td><td> <br>This hook runs after the Title in Single.<br> <\/td><td> <br><strong>title.php<\/strong> <\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><p style=\"background-color: #ffdddd; border-left: 2px solid #f44336; padding:10px;\"><strong>Note:<\/strong> In Swift pages are served through page.php&nbsp;<br><\/p><\/p>\n\n\n\n<h3 id=\"archive-php-these-hooks-will-execute-on-archive-pages\"><mark style=\"background-color:#f9fbe7;\"><span style=\"color: #000000;\"><strong>archive.php &#8211; These hooks will execute on Archive Pages <\/strong><\/mark><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td> <strong>Actions Hooks<\/strong><br><\/td><td><strong>Description<\/strong> <\/td><td><strong>Location<\/strong><\/td><\/tr><tr><td> <br><strong>ampforwp_post_before_loop<\/strong> <\/td><td> <br>This hook executes before the loop (Home and Archive). It can be used to add anything just above the loop.<br> <\/td><td> <br><strong>archive.php<\/strong> <\/td><\/tr><tr><td> <br><strong>amp_before_loop [ Swift ]<\/strong> <\/td><td> <br>This hook executes before the loop (Home and Archive). It can be used to add anything just above the loop. <\/td><td> <br><strong>archive.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_between_loop<\/strong> <\/td><td> <br>This hook executes in between the loop (Home and Archive). It can be used to add anything in between the loop. It has $count variable as a parameter which can be used to count the number of posts which can help greatly to decide where exactly you want to use this hook in the loop.<br> <\/td><td> <br><strong>archive.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_post_after_loop<\/strong> <\/td><td> <br>This hook executes after the loop (Home and Archive). It can be used to add anything just below the loop. <\/td><td> <br><strong>archive.php<\/strong> <\/td><\/tr><tr><td> <br><strong>amp_after_loop [ Swift ]<\/strong> <\/td><td> <br>This hook executes after the loop (Home and Archive). It can be used to add anything just below the loop. <\/td><td> <br><strong>archive.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_loop_before_pagination<\/strong><br> <\/td><td>This hook is used to add the things above the pagination<\/td><td> <br><strong>archive.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_before_meta_taxonomy_hook [ Design 1,2,3 ]<br><\/strong> <\/td><td> <br>It executes right before the Meta taxonomy in Single. <\/td><td> <br><strong>meta-taxonomy.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_after_meta_taxonomy_hook [ Design 1,2,3 ]<\/strong> <\/td><td> <br>It executes right after the Meta taxonomy in Single. <\/td><td> <br><strong>meta-taxonomy.php<\/strong> <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"search-php-these-hooks-will-run-on-search-pages\"><mark style=\"background-color:#f9fbe7;\"><span style=\"color: #000000;\"><strong>search.php &#8211; These hooks will run on Search Pages <\/strong><\/mark><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td> <strong>Actions Hooks<\/strong><br> <\/td><td><strong>Description<\/strong> <\/td><td><strong>Location<\/strong><\/td><\/tr><tr><td> <br><strong>ampforwp_post_before_loop<\/strong> <\/td><td> <br>This hook executes before the loop (Home and Archive). It can be used to add anything just above the loop.<br><br> <\/td><td> <br><strong>search.php<\/strong> <\/td><\/tr><tr><td> <br><strong>amp_before_loop [ Swift ] <\/strong><\/td><td> <br>This hook executes before the loop (Home and Archive). It can be used to add anything just above the loop.<br><br> <\/td><td> <br><strong>search.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_between_loop <\/strong><\/td><td> <br>This hook executes in between the loop (Home and Archive). It can be used to add anything in between the loop. It has $count variable as a parameter which can be used to count the number of posts which can help greatly to decide where exactly you want to use this hook in the loop.<br><br> <\/td><td> <br><strong>search.php<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_post_after_loop&nbsp; <\/strong><\/td><td> <br>This hook executes after the loop (Home and Archive). It can be used to add anything just below the loop.<br><br> <\/td><td> <br><strong>search.php<\/strong> <\/td><\/tr><tr><td> <br><strong>amp_after_loop [ Swift ] <\/strong><\/td><td> <br>This hook executes after the loop (Home and Archive). It can be used to add anything just below the loop.<br><br> <\/td><td> <br><strong>search.php<\/strong> <\/td><\/tr><tr><td><br><strong>ampforwp_search_form_data <\/strong><br><br><a href=\"http:\/\/localhost\/wordpress\/?amp=1&amp;s=sonali\"><\/a><\/td><td>With the help of this filter, you can change the URL structure of the search query<\/td><td>  <br><strong>search.php<\/strong><br><br> <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 id=\"amp-panel-settings-these-hooks-will-run-throughout-the-amp-option-panel\"><mark style=\"background-color:#f9fbe7;\"><span style=\"color: #000000;\">AMP Option Panel Settings <strong>&#8211; These hooks will run throughout the AMP option Panel\u00a0 <\/strong><\/mark><\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td> <strong>Actions Hooks<\/strong><br> <\/td><td> <strong>Description<\/strong> <\/td><\/tr><tr><td> <br><strong>ampforwp_remove_unused_options<\/strong><br><br><br> <\/td><td> <br>If you want to remove unused sections from AMP options panel then use this hook.<br><br> <\/td><\/tr><tr><td> <br><strong>ampforwp_options_enabler<\/strong><br><br><br> <\/td><td> <br>By using this hook you can enable the required options in the AMP Options Panel when AMP Theme Framework is activated.<br><br> <\/td><\/tr><tr><td> <br><strong>ampforwp_options_remover <\/strong><\/td><td> <br>By using this hook you can remove the required options in the AMP Options Panel when AMP Theme Framework is activated.<br><br> <\/td><\/tr><tr><td> <br><strong>amp_template_mode_hide_opt_array<\/strong><br><br><br> <\/td><td> <br>By using this hook you can hide option in Template- mode<br><br> <\/td><\/tr><tr><td> <br><strong>amp_template_mode_show_opt_array<br><\/strong><br> <\/td><td> <br>By using this hook you can show option in Template- mode<br><br> <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3><mark style=\"background-color:#f9fbe7;\">Hooks in Facebook Instant Articles<\/mark><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>  <strong>Actions Hooks<\/strong><br> <\/td><td>  <strong>Description<\/strong>  <\/td><\/tr><tr><td><strong>ampforwp_fbia_head<\/strong><\/td><td><br>It is used to add extra things in Head section of FBIA  which will come in handy if you want to add extra things in Head section<br><\/td><\/tr><tr><td><strong>ampforwp_fbia_body<\/strong><\/td><td><br>It is used to add extra things in the Body section of FBIA  which will come in handy if you want to add extra things in Body section<br><\/td><\/tr><tr><td><strong>ampforwp_fbia_footer<\/strong><\/td><td><br>It is used to add extra things in the Footer section of FBIA  which will come in handy if you want to add extra things in Footer section<br><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Here is an example showing how to use a hook by creating a custom plugin for AMP for WP and the below code will add a banner after the content in the AMP pages<\/strong><\/p>\n\n\n\n<p><script src=\"https:\/\/gist.github.com\/MohammedKaludi\/435536072d98412f64f9a8023b2795d8.js\"><\/script><\/p>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Here is the complete list of all our hooks including their functionalities: Sitewide HomePage single.php archive.php search.php AMP Option Panel Settings Hooks in Facebook Instant Articles Sitewide &#8211; These hooks will run throughout the AMP website Actions Hooks Description amp_post_template_head It is used to add extra things in Head section&#8230;<\/p>\n","protected":false},"author":5,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[187],"ht-kb-tag":[130],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/4465"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=4465"}],"version-history":[{"count":219,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/4465\/revisions"}],"predecessor-version":[{"id":18321,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/4465\/revisions\/18321"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=4465"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=4465"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=4465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}