array(), 'version' => GUTENIFY_VERSION, ); } /** * Enqueue block assets for use within Gutenberg. * * @access public */ public function block_assets() { if ( is_admin() ) { return false; } global $post; // Only load the front end CSS if a Gutenify is in use. $has_gutenify = ! is_singular(); if ( ! is_admin() && is_singular() ) { $wp_post = get_post( $post ); // This is similar to has_block() in core, but will match anything // in the gutenify/* namespace. if ( $wp_post instanceof WP_Post ) { $has_gutenify = ! empty( array_filter( array( false !== strpos( $wp_post->post_content, '