Gutenberg InnerBlocks noallowedblocks on parent but allowedblock on Child

You need to set templateLock=”all” on InnerBlocks: <InnerBlocks template={SLIDER_TEMPLATE} templateLock=”all” allowedBlocks={ [ ] } /> This locks the inner blocks to the blocks that were inserted using the template. The user should still be able to add inner blocks to the give-camp/gc-slider-items block, but they will not be able to add, move, or delete the … Read more

WordPress getting data from external API

If the API requires an authorization as Bearer token, just write is as Bearer and not as Basic: $headers = array( ‘Content-Type’ => ‘application/x-www-form-urlencoded’, ‘Authorization’ => ‘Beaerer Base64enodedusercredentials’, ); Also take a look at the documentation of this API. Also, make sure that you are currently duplicating the feedback in both of your functions. The … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)