10up / distributor

Share content between your websites.
https://distributorplugin.com
GNU General Public License v2.0
638 stars 156 forks source link

YITH Product Size Charts for WooCommerce #762

Open HQv2 opened 3 years ago

HQv2 commented 3 years ago

Is your enhancement related to a problem? Please describe. Requesting support for YITH Product Size Charts for WooCommerce https://yithemes.com/themes/plugins/yith-product-size-charts-for-woocommerce/

Describe the solution you'd like We would like to distribute the size charts created by YITH Product Size Charts for WooCommerce to the other sites on our wordpress network.

Additional context My coworker created a temporary workaround, but it needs to be re-done each time the Distributor plugin updates or changes. Hoping this can be officially implemented into the plugin.

I can provide the plugin file for testing purposes.

Thank you!

jeffpaul commented 3 years ago

@HQv2 we have a tracking issue (see #131) in our 2.0.0 milestone where we want to have a documented approach for how integrations/extensions can be best supported. I'm going to set your request alongside 131 as we'll know more then. Let me know if there's anything unique in the handling/workaround you've crafted or something particularly difficult in the integration with YITH Product Size Charts so that can be considered once an approach is determined in 131... thanks!

HQv2 commented 3 years ago

This is what prevents Distributor from normally seeing Size Carts and other custom post types:

$args = array(
        'labels'        => $labels,
        'public'        => true,
        'show_ui'       => true,
        'menu_position'    => 10,
        'exclude_from_search' => true,
        'capability_type'   => 'size_chart',
        'capabilities'     => $caps,
        'map_meta_cap'     => true,
        'rewrite'       => true,
        'has_archive'     => true,
        'hierarchical'     => false,
        'show_in_nav_menus'  => false,
        'menu_icon'      => 'dashicons-grid-view',
        'supports'       => array( 'title' ),
      );
      register_post_type( 'yith-wcpsc-wc-chart', $args );
    }

By default, it’s normally on: 'public' => false,