Skip to main content

New answers tagged

0 votes

How to use useSelect to retrieve the currently default fontFamily?

It turns out that it wasn't really needed to find the default font as an empty string is interpreted as the default font. I just did it this way: <FontFamilyControl> value={ buttonFontFamily ||...
Iogui's user avatar
  • 111
2 votes

Add custom data attribute to every core Gutenberg Blocks

I found the solution: I removed addFilter('blocks.getSaveContent.extraProps', 'luxuryconcept/add-custom-props', addCustomProps); as @TomJNowell recomended. I added the add_filter('render_block', '...
Stefano's user avatar
  • 33
0 votes

Prevent update_checkout from firing mid-typing

The address field is identified by the .address-field class. This happens in the file /wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js, in init we have the following event listener: ...
XTard's user avatar
  • 1
0 votes
Accepted

how to escape alert/window.location.replace with variable

how do I esc them? You don't, both approaches are fundamentally wrong in multiple ways that make them irrecoverable. First Case echo "<script> alert( 'Authorization successful. Hello ' + '$...
Tom J Nowell's user avatar
  • 59.8k
3 votes
Accepted

Can't make an external api call in php side of wordpress child theme

So I finally figured out my problems. One mistake I was making was not structuring $options properly. This is WRONG what i did: $options = array( 'http' => array( 'header' => "...
vroque2022's user avatar

Top 50 recent answers are included