Support » Plugin: WPGatsby » not triggering a build on gatsby cloud creating new item of a custom post type

  • Hi,

    The issue that I have is that no build will be triggered when i create/update/delete an element of a custom post type. This is how I created the post type, putting this in my functions.php :

    
    <?php
    
    add_action('init', 'crea_progetti');
    function crea_progetti() {
    
        $labels = array(
            'name'               => __('Progetti'),
            'singular_name'      => __('Progetto'),
            'add_new'            => __('Aggiungi Progetto'),
            'add_new_item'       => __('Nuovo Progetto'),
            'edit_item'          => __('Modifica Progetto'),
            'new_item'           => __('Nuovo Progetto'),
            'all_items'          => __('Tutti i Progetti'),
            'view_item'          => __('Vedi Progetto'),
            'search_items'       => __('Cerca Progetti'),
            'not_found'          => __('Progetto non trovato'),
            'not_found_in_trash' => __('Progetto non trovato nel cestino'),
            'show_in_graphql' => true,
            'hierarchical' => true,
            'graphql_single_name' => 'progetto',
            'graphql_plural_name' => 'progetti',
        );
    
        $args = array(
    
            'labels'             => $labels,
            'menu_icon'          => 'dashicons-awards',
            'public'             => true,
            'publicly_queryable' => true,
            'show_ui'            => true,
            'show_in_menu'       => true,
            'query_var'          => true,
            'rewrite'            => array( 'slug' => 'progetto' ),
            'capability_type'    => 'post',
            'has_archive'        => false,
            'hierarchical'       => false,
            'menu_position'      => null,
            'supports'           => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),
    
        );
    
        register_post_type('progetti', $args);
    

    Do I need some extra configuration for the webhook to be fired also when I save custom post types?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘not triggering a build on gatsby cloud creating new item of a custom post type’ is closed to new replies.