79603720

Date: 2025-05-02 16:07:02
Score: 1
Natty:
Report link

This doesn't seem to work anymore...?
Any help very welcome ;-)

 const Edit = ( props ) => {
    const {
        attributes,
        setAttributes
    } = props,
    {
        productNum,
        selectedProductCategory,
        displayType
    } = attributes;
    const wooRequestedElements = useSelect( select => {
        const postType = 'product';
        const args = {
             per_page: 6,
             _embed: true,
             product_cat: [selectedProductCategory]
        };
        return select('core').getEntityRecords( 'postType', postType, args  );
    });
Reasons:
  • Blacklisted phrase (1): Any help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: jst