true ], 'objects' ); // Default to `product` when WooCommerce is active and the caller didn't specify. // Stores shouldn't have to pick "Product" from the dropdown every time. if ( ! isset( $default_cpt ) || $default_cpt === '' ) { if ( class_exists( 'WooCommerce' ) && isset( $post_types['product'] ) ) { $default_cpt = 'product'; } else { $default_cpt = ''; } } ?>
|
|