Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The Block Editor is the 'new publishing experience' introduced in WordPress 5.0, replacing TinyMCE and other aspects of the default editing experience. Find out more at https://wordpress.org/gutenberg/
0
votes
1
answer
709
views
Trying to turn the Edit function into a class to be able to use React lifecycle methods
In order to be able to use React lifecycle methods I'm trying to change the default Edit function created by @wordpress/create-block into a javascript class like in this simple test example:
import { …
1
vote
Accepted
Trying to turn the Edit function into a class to be able to use React lifecycle methods
It turned out that, at least for my specific use case, there was no need to use a class or interact with React lifecycle methods. My code was already working with the component as a function but for s …
0
votes
1
answer
37
views
How can I obtain an option (get_option) inside a block viewScript?
If I traditionally enqueue a script...
wp_enqueue_script('some-script', $dependencies_script_path, array( 'wp-i18n' ), false, $load_in_footer);
I can use wp_add_inline_script to send info from wp_opt …
0
votes
1
answer
25
views
How to use useSelect to retrieve the currently default fontFamily?
I'm trying to identify where I could find this information but I've not been able til the present moment, to achieve it.
I've been looking in core/block-editor and core/editor. I've been researching i …
0
votes
Accepted
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 || '' } …