Enable pixfort page options on custom post types

To add pixfort page options to WordPress custom post page, you can use the filter pixfort_page_options_post_types¬†which passes an array of the default post types that have pixfort options, for example to enable pixfort options in WooCommerce “product” custom post type you can add the following code to the child theme functions.php file:

function example_add_page_post_types($post_types) {
    array_push($post_types, "product");
    return $post_types;
add_filter( 'pixfort_page_options_post_types', 'example_add_page_post_types' );

After that the custom post type edit page will display pixfort options and you will be able to set custom values for the page (for example: custom header, footer, intro image,…).

Essentials support team

Hey, this is pixfort support team, if you still need help you can always reach us via the chat messenger in your account on pixfort hub

Related Posts