Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • The insertBlock() Gutenberg JS function does not seem to be working as it did in WordPress version 5.5.3. On version 5.6.x, innerBlocks[] does not always reflect the insertion of the new block. Did anything change that would impact the results if the insertBlock function. Tried using wp.data.dispatch( 'core/block-editor' ).insertBlocks instead, but it had the same problem.

    Thread Starter meyerauslander

    (@meyerauslander)

    Thanks, I understant the idea you are saying but I’m not sure how to implement such a filter. Say I found such an SQL function, what would the code look like in order to use the function to change the wordpress search result. Would I need to make my own query or would applying this filter automatically effect the wordpress search query.
    Also what would the code look like to check the query variables.

    function decode_entities($query){
    //what goes here??
    }
    addfilter('posts_where','decode_entities);

    Is this what you mean?
    Meyer

    • This reply was modified 6 years, 4 months ago by bcworkz. Reason: code fixed
Viewing 2 replies - 1 through 2 (of 2 total)