(float) get_bloginfo('version'), 'rest_rootURL' => get_rest_url(), 'fontAwesome' => "true" )), wp_json_encode(array( 'editor_type' => $editor_type )) ), 'before' ); wp_register_style( 'essential-blocks-iconpicker-css', ADVANCEDHEADING_BLOCK_ADMIN_URL . 'dist/style-modules.css', [], ADVANCEDHEADING_BLOCK_VERSION, 'all' ); wp_enqueue_style( 'advanced-heading-controls-css', ADVANCEDHEADING_BLOCK_ADMIN_URL . '/dist/modules.css', array('essential-blocks-iconpicker-css'), $controls_dependencies['version'], 'all' ); } } public static function get_block_register_path($blockname, $blockPath) { if ((float) get_bloginfo('version') <= 5.6) { return $blockname; } else { return $blockPath; } } } Advanced_Heading_Helper::register();