[SOLVED] Failed to initialize plugin: pfcbutton
-
Its been a while I have seen the error and did not had the time to figure out the issue.
Now I finally got time to dig into the code to fix the error
Failed to initialize plugin: pfcbutton
This error occurs when you are using the Classic editor (tinymce) as part of the Gutenberg blocks inside Posts or pages.Reason:
Insidepost-from-category.phpon line598it usesadd_action ( 'after_wp_tiny_mce', 'pfc_tinymce_custom_vars' );which not not triggered correctly anymore.
Details: https://developer.ww.wp.xz.cn/reference/hooks/after_wp_tiny_mce/
Workaround:
To workaround this, replace the line 598 with:
add_action ( 'admin_head', 'pfc_tinymce_custom_vars' );Or add the below code into the functions.php of your current active theme:
add_action('admin_head', 'pfc_tinymce_custom_vars');
The topic ‘[SOLVED] Failed to initialize plugin: pfcbutton’ is closed to new replies.