Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29118
    David.Berner
    Guest

    Using BoldGrid with Custom Post Type UI Plugin. We use Custom Post Type UI plugin to allow our created pages / posts to be more organised under the REST API, can we use BoldGrid with them, or is it only Pages and Posts ?

    #29119
    BoldGrid Contributor
    Guest

    You can add the following to your wp-config.php file above the line stating

    “/* That’s all, stop editing! Happy blogging. */”:

    // Filter the configuration of the post-and-page-builder.
    require_once ABSPATH . ‘/wp-includes/plugin.php’;
    add_filter( ‘BoldgridEditorConfig’, function( $configs ) {
    $configs[‘allowed_post_types’][] = ‘custom_type’;
    return $configs;
    } )

    You’ll want to change “custom_type” to whatever the new type actually is.

    This full code block  also ensures that the code will not get overwritten during plugin or theme updates.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Using BoldGrid with Custom Post Type UI Plugin.’ is closed to new replies.