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,…).

pixfort
pixfort
Support Team

Hey, this is pixfort support team, if you still need help you can always reach us via your pixfort account

Related Posts

Search

Start typing to search for a specific article on our website

Made with Popup Builder
Image link
Hey there

Search for a specific article

Get started

Check useful guides to get started

Still need Help?

Send us a support message

Our usual reply time: 1 Business day