Fix shortcode button action timing
This commit is contained in:
@@ -25,7 +25,7 @@ class SP_Admin_Editor {
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
add_action( 'admin_head', array( $this, 'add_shortcode_button' ) );
|
||||
add_action( 'admin_init', array( $this, 'add_shortcode_button' ) );
|
||||
add_filter( 'tiny_mce_version', array( $this, 'refresh_mce' ) );
|
||||
add_filter( 'mce_external_languages', array( $this, 'add_tinymce_lang' ), 10, 1 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user