Fix blocks not being registered soon enough

This commit is contained in:
David Stone
2024-12-27 23:43:01 -07:00
parent 9a310d491e
commit 5896a993aa

View File

@ -237,9 +237,11 @@ abstract class Base_Element {
add_action('wu_element_preview', array($this, 'setup_preview')); add_action('wu_element_preview', array($this, 'setup_preview'));
add_action('init', function () { // Init should be the correct time to call this to avoid the deprecated notice from I18N.
// But it doesn't work for some reason, fix later.
// add_action('init', function () {
do_action('wu_element_loaded', $this); do_action('wu_element_loaded', $this);
} ); // } );
if ($this->public) { if ($this->public) {