YoastWPSEOadmin_post_types_beforearchive

YoastWPSEOadmin_post_types_beforearchive

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-seo.19.9

do_action('YoastWPSEOadmin_post_types_beforearchive') is found 1 times:

  • /admin/views/tabs/metas/paper-content/post-type-content.php line 28
     *
     * @param Yoast_Form $yform The Yoast_Form object.
     * @param string     $name  The post type name.
     */
    do_action( 'Yoast\WP\SEO\admin_post_types_beforearchive', $yform, $wpseo_post_type->name );
    
    if ( $wpseo_post_type->name === 'product' && YoastSEO()->helpers->woocommerce->is_active() ) {
    	require __DIR__ . '/post_type/woocommerce-shop-page.php';
    
    	return;
    }
    

See this hook used in plugins: