{"id":830,"date":"2021-06-01T00:34:24","date_gmt":"2021-06-01T00:34:24","guid":{"rendered":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/?p=830"},"modified":"2021-06-02T23:56:43","modified_gmt":"2021-06-02T23:56:43","slug":"hooks-and-actions","status":"publish","type":"post","link":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/","title":{"rendered":"Hooks and actions"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a rel=\"noreferrer noopener\" href=\"https:\/\/codex.wordpress.org\/Plugin_API\" target=\"_blank\">Actions and Filters<\/a>&nbsp;are provided by WordPress to allow your plugin to \u2018hook into\u2019 the rest of WordPress; the same concept is used by Wolmart to allow hooking into Wolmart specific functionality so that you can modify it in a child theme or even a plugin.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">How To Use a Hook Or A Filter?<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">So, let\u2019s assume you wanna show product tab accordion in particular single product page. At that time, you can show as accordion using our Wolmart filter.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> Copy the single product template file and modify the code in that file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong> Use a filter in a child theme\u2019s single product\/tabs.php.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Following is an example code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter( 'wolmart_single_product_data_tab_type', function() {\n     return 'accordion';\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Actions are similar to the filters. By using an action, you don\u2019t edit or overwrite the core code which is why, your code will rarely need to be changed.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Conversion For Child Themes<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019d like to learn how to convert Child Themes, you should use actions and filters as much as possible. you can show many actions and filters on following code.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Actions List<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>1. Wolmart\/framework\/theme-actions.php\r\n    \/\/ Page layout\r\n    add_action( 'wolmart_print_before_page_layout', 'wolmart_print_layout_before' );\r\n    add_action( 'wolmart_print_after_page_layout', 'wolmart_print_layout_after' );\r\n\r\n    \/\/ Comment\r\n    add_filter( 'wolmart_filter_comment_form_args', 'wolmart_comment_form_args' );\r\n    add_action( 'comment_form_before_fields', 'wolmart_comment_form_before_fields' );\r\n    add_action( 'comment_form_after_fields', 'wolmart_comment_form_after_fields' );\r\n    add_filter( 'pre_get_avatar_data', 'wolmart_set_avatar_size' );\n\n2. Wolmart\/framework\/addons\/skeleton\/skeleton.php\n    \/\/ Sidebar skeleton\r\n    add_action( 'wolmart_sidebar_content_start', array( $this, 'sidebar_content_start' ) );\r\n    add_action( 'wolmart_sidebar_content_end', array( $this, 'sidebar_content_end' ) );\r\n    add_filter( 'wolmart_sidebar_classes', array( $this, 'sidebar_classes' ) );\r\n\r\n    \/\/ Posts (archive + single) skeleton\r\n    add_filter( 'wolmart_post_loop_wrapper_classes', array( $this, 'post_loop_wrapper_class' ) );\r\n    add_filter( 'wolmart_post_single_class', array( $this, 'post_loop_wrapper_class' ) );\r\n    add_action( 'wolmart_post_loop_before_item', array( $this, 'post_loop_before_item' ) );\r\n    add_action( 'wolmart_post_loop_after_item', array( $this, 'post_loop_after_item' ) );\r\n\r\n    \/\/ Archive products &amp; categories skeleton\r\n    add_filter( 'wolmart_product_loop_wrapper_classes', array( $this, 'product_loop_wrapper_class' ) );\r\n    add_action( 'wolmart_product_loop_before_item', array( $this, 'product_loop_before_item' ) );\r\n    add_action( 'wolmart_product_loop_after_item', array( $this, 'product_loop_after_item' ) );\r\n    add_action( 'wolmart_product_loop_before_cat', array( $this, 'product_loop_before_cat' ) );\r\n    add_action( 'wolmart_product_loop_after_cat', array( $this, 'product_loop_after_cat' ) );\r\n\r\n    \/\/ Single product skeleton\r\n    add_filter( 'wolmart_single_product_classes', array( $this, 'single_product_classes' ) );\r\n    add_action( 'wolmart_before_product_gallery', array( $this, 'before_product_gallery' ), 20 );\r\n    add_action( 'wolmart_after_product_gallery', array( $this, 'after_product_gallery' ), 20 );\r\n    if ( ! defined( 'WOLMART_VENDORS' ) ) {\r\n        \/\/ We disable skeleton screen for single product page's summary and tabs,\r\n        \/\/ because it has too many compatibility issues.\r\n        add_action( 'wolmart_before_product_summary', array( $this, 'before_product_summary' ), 20 );\r\n        add_action( 'wolmart_after_product_summary', array( $this, 'after_product_summary' ), 20 );\r\n        add_action( 'wolmart_wc_product_before_tabs', array( $this, 'before_product_tabs' ), 20 );\r\n        add_action( 'woocommerce_product_after_tabs', array( $this, 'after_product_tabs' ), 20 );\r\n    }\n\n3. Wolmart\/framework\/plugins\/woocommerce\/product-loop.php\n   \/\/ Product Loop Details\n   add_action( 'wolmart_shop_loop_item_categories', 'wolmart_shop_loop_item_categories' );\n   \/\/ Product Loop Hide Details (for classic type)\n   add_action( 'wolmart_product_loop_hide_details', 'wolmart_product_loop_action' );\n\n\n4. Wolmart\/framework\/plugins\/woocommerce\/product-single.php\n   \/\/ Single Product - the other types except gallery and sticky-both types\r\n   add_action( 'wolmart_after_product_summary_wrap', 'wolmart_single_product_wrap_second_end', 20 );\n   \/\/ Single Product - sticky-both type\n   add_action( 'wolmart_before_product_summary', 'wolmart_wc_show_product_images_sticky_both', 5 );\n   \/\/ Single Product - sticky-info type\n   add_action( 'wolmart_after_product_summary_wrap', 'wolmart_single_product_wrap_sticky_info_end', 15 );\n   \/\/ Single Product Media\n   add_action( 'wolmart_woocommerce_product_images', 'wolmart_single_product_images' );\n   \/\/ Product Listed Attributes (in archive loop and single)\n   add_action( 'wolmart_wc_product_listed_attributes', 'wolmart_wc_product_listed_attributes_html' );\n\n\n5. Wolmart\/framework\/plugins\/woocommerce\/woo-functions.php\n   \/\/ Woocommerce Breadcrumb\r\n   add_filter( 'woocommerce_breadcrumb_defaults', 'wolmart_wc_breadcrumb_args' );\n   \/\/ Woocommerce Notice Skin\n   add_action( 'wolmart_wc_before_notice', 'wolmart_wc_notice_action', 10, 2 );\n   add_action( 'wolmart_wc_after_notice', 'wolmart_wc_notice_close', 10, 2 );<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Filters List<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>1. Wolmart\/comments.php\n   apply_filters( 'wolmart_filter_comment_args', array() );\n   apply_filters( 'wolmart_filter_comment_form_args', array() );\n\n\n2. Wolmart\/framework\/core-functions.php\n\n   apply_filters( 'wolmart_get_template_part', $template, $slug, $name );\n   apply_filters( 'wolmart_get_col_class', $class );\n\n\n3. Wolmart\/framework\/theme-functions.php\n\n   apply_filters( 'wolmart_filter_reponsive_cols', $result, $cols );\n   apply_filters( 'wolmart_filter_trim_description', '&lt;p>' . mb_substr( $content, 0, $limit ) . $affix . '&lt;\/p>' );\n   apply_filters( 'wolmart_core_filter_doing_ajax', false );\n   apply_filters( 'wolmart_is_shop', true );\n   apply_filters( 'wolmart_is_product', false );\n\n\n4. Wolmart\/framework\/theme-actions.php\n   apply_filters( 'wolmart_main_content_class', 'main-content' );\n\n\n5. Wolmart\/framework\/addons\/live-search\/live-search.php\n   apply_filters( 'wolmart_live_search_query', sanitize_text_field( $_REQUEST&#91;'query'] ) );\n   apply_filters( 'wolmart_live_search_post_type', $post_type );\n   apply_filters( 'wolmart_live_search_products_query', sanitize_text_field( $_REQUEST&#91;'query'] ) );\n   apply_filters( 'wolmart_live_search_products_by_sku_query', sanitize_text_field( $_REQUEST&#91;'query'] ) );\n   apply_filters( 'wolmart_live_search_products_by_tag_query', sanitize_text_field( $_REQUEST&#91;'query'] ) );\n   apply_filters( 'wolmart_live_search_function', 'get_posts', $search_query, $args );\n\n\n6. Wolmart\/framework\/addons\/product-custom-tab\/product-custom-tab-admin.php\r\n   apply_filters( 'wolmart_product_custom_tab_content_editor_settings', $settings );\r\n\r\n\r\n7. Wolmart\/framework\/plugins\/woocommerce\/product-loop.php\r\n   apply_filters( 'wolmart_product_hover_image_html', $attachment_image ); \r\n   apply_filters( 'wolmart_is_single_product_widget', false );\r\n   apply_filters( 'wolmart_check_product_variation_type', true, $attribute_name );\r\n\r\n\r\n8. Wolmart\/framework\/plugins\/woocommerce\/product-single.php\r\n   apply_filters( 'wolmart_doing_quickview', true );\r\n   apply_filters( 'wolmart_single_product_layout', $layout );\r\n   apply_filters( 'wolmart_wc_thumbnail_image_size', 'woocommerce_thumbnail' );\r\n   apply_filters( 'wolmart_wc_get_gallery_image_html', $image );\r\n   apply_filters( 'wolmart_single_product_navigation', $html );\r\n   apply_filters( 'wolmart_filter_single_prev_next_product', $args );\r\n   apply_filters( 'wolmart_single_product_sticky_cart_enabled', ! empty( $wolmart_layout&#91;'single_product_sticky'] ) );\r\n   apply_filters( 'wolmart_single_product_gallery_type_class', ' row cols-1 cols-md-2 cols-lg-3' );\r\n   apply_filters( 'wolmart_single_product_divider', '&lt;hr class=\"product-divider\">' );\r\n   apply_filters( 'wolmart_is_single_product_widget', false );\r\n\r\n\r\n9. Wolmart\/framework\/plugins\/woocommerce\/woo-functions.php\r\n   apply_filters( 'wolmart_breadcrumb_args', $args );\r\n\r\n\r\n10. Wolmart\/framework\/addons\/walker\/walker-nav-menu.php\r\n   apply_filters( 'wolmart_menu_lazyload_content', $content );\r\n\r\n\r\n11. Wolmart\/framework\/templates\/sidebar.php\r\n   apply_filters( 'wolmart_sidebar_classes', $sidebar_class );\r\n\r\n\r\n12. Wolmart\/framework\/templates\/posts\/archive.php\r\n   apply_filters( 'wolmart_post_loop_wrapper_classes', $wrap_classes );\r\n\r\n\r\n13. Wolmart\/framework\/templates\/posts\/single.php\r\n   apply_filters( 'wolmart_post_single_class', array( 'post-single' ) );\r\n\r\n\r\n14. Wolmart\/framework\/templates\/posts\/elements\/post-related.php\r\n   apply_filters( 'wolmart_filter_related_posts_args', $args );\r\n\r\n\r\n15. Wolmart\/framework\/templates\/woocommerce\/content-single-product.php\r\n  apply_filters( 'wolmart_is_single_product_widget', false );\r\n  apply_filters( 'wolmart_single_product_classes', $classes );\r\n  apply_filters( 'wolmart_single_product_summary_class', 'summary entry-summary' );\r\n\r\n\r\n16. Wolmart\/framework\/templates\/woocommerce\/loop\/loop-start.php\r\n  apply_filters( 'wolmart_wc_product_count_row', wolmart_get_option( 'product_count_row' ) );\r\n  apply_filters( 'wolmart_wc_loadmore_type', wc_get_loop_prop( 'loadmore_type' ) );\r\n  apply_filters( 'wolmart_product_loop_wrapper_classes', $wrapper_class );\r\n\r\n\r\n17. Wolmart\/framework\/templates\/woocommerce\/loop\/rating.php\r\n  apply_filters( 'wolmart_single_product_rating_show_number', false );\r\n  apply_filters( 'wolmart_single_product_show_review', comments_open() &amp;&amp; 'widget' != wc_get_loop_prop( 'product_type' ) );\r\n\r\n\r\n18. Wolmart\/framework\/templates\/woocommerce\/loop\/sale-flash.php\r\n  apply_filters( 'wolmart_product_label_group_class', '' );\r\n\r\n\r\n19. Wolmart\/framework\/templates\/woocommerce\/notices\/error.php\r\n  apply_filters( 'wolmart_wc_notice_class', '', $notice, 'error' );\r\n\r\n\r\n20. Wolmart\/framework\/templates\/woocommerce\/single-product\/product-image.php\r\n   apply_filters( 'wolmart_single_product_gallery_main_classes', array( 'woocommerce-product-gallery__wrapper' ) );\r\n\r\n\r\n21. Wolmart\/framework\/templates\/woocommerce\/single-product\/title.php\r\n   apply_filters( 'wolmart_single_product_title_tag', wolmart_doing_quickview() ? 'h2' : 'h1' );\r\n   apply_filters( 'wolmart_is_single_product_widget', false );\r\n\r\n\r\n22. Wolmart\/framework\/templates\/woocommerce\/single-product\/tabs\/custom_tab.php\r\n   apply_filters( 'wolmart_product_tab_title', $tab_title );\r\n\r\n\r\n23. Wolmart\/woocomerce\/single-product\/tabs\/tabs.php\r\n  apply_filters( 'wolmart_single_product_data_tab_type', 'tab' );\r\n  apply_filters( 'wolmart_single_product_data_tab_class', $wrapper_class );<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Actions and Filters&nbsp;are provided by WordPress to allow your plugin to \u2018hook into\u2019 the rest of WordPress; the same concept is used by Wolmart to allow hooking into Wolmart specific functionality so that you can modify it in a child theme or even a plugin. How To Use a Hook Or A Filter? So, let\u2019s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-830","post","type-post","status-publish","format-standard","hentry","category-developer-guide"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hooks and actions - Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hooks and actions - Documentation\" \/>\n<meta property=\"og:description\" content=\"Actions and Filters&nbsp;are provided by WordPress to allow your plugin to \u2018hook into\u2019 the rest of WordPress; the same concept is used by Wolmart to allow hooking into Wolmart specific functionality so that you can modify it in a child theme or even a plugin. How To Use a Hook Or A Filter? So, let\u2019s [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-01T00:34:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-02T23:56:43+00:00\" \/>\n<meta name=\"author\" content=\"John Doe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"John Doe\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/\"},\"author\":{\"name\":\"John Doe\",\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/person\/b7eaaa57d9b7400248fcd02898de3ab9\"},\"headline\":\"Hooks and actions\",\"datePublished\":\"2021-06-01T00:34:24+00:00\",\"dateModified\":\"2021-06-02T23:56:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/\"},\"wordCount\":186,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#organization\"},\"articleSection\":[\"19. Developer Guide\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/\",\"url\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/\",\"name\":\"Hooks and actions - Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#website\"},\"datePublished\":\"2021-06-01T00:34:24+00:00\",\"dateModified\":\"2021-06-02T23:56:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hooks and actions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#website\",\"url\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/\",\"name\":\"Documentation\",\"description\":\"Wolmart Marketplace WordPress Documentation Site\",\"publisher\":{\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#organization\",\"name\":\"Documentation\",\"url\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-content\/uploads\/sites\/29\/2022\/06\/logo.png\",\"contentUrl\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-content\/uploads\/sites\/29\/2022\/06\/logo.png\",\"width\":290,\"height\":90,\"caption\":\"Documentation\"},\"image\":{\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/person\/b7eaaa57d9b7400248fcd02898de3ab9\",\"name\":\"John Doe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9e46be6d35d74e85d121e532acbacd8bf9de2a5d1b8d015ee02d66a00b3b2993?s=90&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9e46be6d35d74e85d121e532acbacd8bf9de2a5d1b8d015ee02d66a00b3b2993?s=90&d=mm&r=g\",\"caption\":\"John Doe\"},\"description\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Venenatis tellus in metus vulputate eu scelerisque felis. Vel pretium lectus quam id leo in vitae turpis massa. Nunc id cursus metus aliquam. Libero id faucibus nisl tincidunt eget. Aliquam id diam maecenas ultricies mi eget mauris. Volutpat ac tincidunt vitae semper quis lectus. Vestibulum mattis ullamcorper velit sed. A arcu cursus vitae congue mauris. A arcu cursus vitae congue mauris. Sagittis id consectetur purus ut. Tellus rutrum tellus pellentesque eu tincidunt tortor aliquam nulla. Diam in arcu cursus euismod quis. Eget sit amet tellus cras adipiscing enim eu. In fermentum et sollicitudin ac orci phasellus. A condimentum vitae sapien pellentesque habitant morbi tristique senectus et. In dictum non consectetur a erat. Nunc scelerisque viverra mauris in aliquam sem fringilla.\",\"sameAs\":[\"https:\/\/d-themes.com\/wordpress\/wolmart\"],\"url\":\"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/author\/wolmarter\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hooks and actions - Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/","og_locale":"en_US","og_type":"article","og_title":"Hooks and actions - Documentation","og_description":"Actions and Filters&nbsp;are provided by WordPress to allow your plugin to \u2018hook into\u2019 the rest of WordPress; the same concept is used by Wolmart to allow hooking into Wolmart specific functionality so that you can modify it in a child theme or even a plugin. How To Use a Hook Or A Filter? So, let\u2019s [&hellip;]","og_url":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/","og_site_name":"Documentation","article_published_time":"2021-06-01T00:34:24+00:00","article_modified_time":"2021-06-02T23:56:43+00:00","author":"John Doe","twitter_card":"summary_large_image","twitter_misc":{"Written by":"John Doe","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/#article","isPartOf":{"@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/"},"author":{"name":"John Doe","@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/person\/b7eaaa57d9b7400248fcd02898de3ab9"},"headline":"Hooks and actions","datePublished":"2021-06-01T00:34:24+00:00","dateModified":"2021-06-02T23:56:43+00:00","mainEntityOfPage":{"@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/"},"wordCount":186,"commentCount":0,"publisher":{"@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#organization"},"articleSection":["19. Developer Guide"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/","url":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/","name":"Hooks and actions - Documentation","isPartOf":{"@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#website"},"datePublished":"2021-06-01T00:34:24+00:00","dateModified":"2021-06-02T23:56:43+00:00","breadcrumb":{"@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/2021\/06\/01\/hooks-and-actions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/"},{"@type":"ListItem","position":2,"name":"Hooks and actions"}]},{"@type":"WebSite","@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#website","url":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/","name":"Documentation","description":"Wolmart Marketplace WordPress Documentation Site","publisher":{"@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#organization","name":"Documentation","url":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/logo\/image\/","url":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-content\/uploads\/sites\/29\/2022\/06\/logo.png","contentUrl":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-content\/uploads\/sites\/29\/2022\/06\/logo.png","width":290,"height":90,"caption":"Documentation"},"image":{"@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/person\/b7eaaa57d9b7400248fcd02898de3ab9","name":"John Doe","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9e46be6d35d74e85d121e532acbacd8bf9de2a5d1b8d015ee02d66a00b3b2993?s=90&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9e46be6d35d74e85d121e532acbacd8bf9de2a5d1b8d015ee02d66a00b3b2993?s=90&d=mm&r=g","caption":"John Doe"},"description":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Venenatis tellus in metus vulputate eu scelerisque felis. Vel pretium lectus quam id leo in vitae turpis massa. Nunc id cursus metus aliquam. Libero id faucibus nisl tincidunt eget. Aliquam id diam maecenas ultricies mi eget mauris. Volutpat ac tincidunt vitae semper quis lectus. Vestibulum mattis ullamcorper velit sed. A arcu cursus vitae congue mauris. A arcu cursus vitae congue mauris. Sagittis id consectetur purus ut. Tellus rutrum tellus pellentesque eu tincidunt tortor aliquam nulla. Diam in arcu cursus euismod quis. Eget sit amet tellus cras adipiscing enim eu. In fermentum et sollicitudin ac orci phasellus. A condimentum vitae sapien pellentesque habitant morbi tristique senectus et. In dictum non consectetur a erat. Nunc scelerisque viverra mauris in aliquam sem fringilla.","sameAs":["https:\/\/d-themes.com\/wordpress\/wolmart"],"url":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/author\/wolmarter\/"}]}},"_links":{"self":[{"href":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-json\/wp\/v2\/posts\/830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-json\/wp\/v2\/comments?post=830"}],"version-history":[{"count":0,"href":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-json\/wp\/v2\/posts\/830\/revisions"}],"wp:attachment":[{"href":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-json\/wp\/v2\/media?parent=830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-json\/wp\/v2\/categories?post=830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/wolmart\/documentation\/wp-json\/wp\/v2\/tags?post=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}