Astra_Ext_Advanced_Hooks_Markup::load_ultimate_gutenberg_blocks_assets()
Load all Guttenberg compatibility styles & scripts.
Description
Source
File: addons/advanced-hooks/classes/class-astra-ext-advanced-hooks-markup.php
public function load_ultimate_gutenberg_blocks_assets() { $option = array( 'location' => 'ast-advanced-hook-location', 'exclusion' => 'ast-advanced-hook-exclusion', 'users' => 'ast-advanced-hook-users', ); $result = Astra_Target_Rules_Fields::get_instance()->get_posts_by_conditions( ASTRA_ADVANCED_HOOKS_POST_TYPE, $option ); foreach ( $result as $post_id => $post_data ) { if ( class_exists( 'Astra_Addon_Gutenberg_Compatibility' ) ) { $astra_gutenberg_instance = new Astra_Addon_Gutenberg_Compatibility(); if ( is_callable( array( $astra_gutenberg_instance, 'enqueue_blocks_assets' ) ) ) { $astra_gutenberg_instance->enqueue_blocks_assets( $post_id ); } } } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.5.1 | Introduced. |