single.html
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Blocks
  • Plugins
  • Themes
  • Sitemap
  • Blog
  • Block news
  • About

Home » Files » wp-includes » wp-includes/block-supports » wp-includes/block-supports/layout.php

wp-includes/block-supports/layout.php


Lines:

1 to 34 of 34
<?php

/**
 * Layout block support flag.
 *
 * @package WordPress
 * @since 5.8.0
 */

/* function wp_register_layout_support() – Registers the layout block attribute for block types that support it. */

/* function wp_get_layout_style() – Generates the CSS corresponding to the provided layout. */

/* function wp_render_layout_support_flag() – Renders the layout config to the block wrapper. */

// Register the block support.
WP_Block_Supports::get_instance()->register(
  'layout',
  array(
    'register_attribute' => 'wp_register_layout_support',
  )
);
add_filter( 'render_block', 'wp_render_layout_support_flag', 10, 2 );

/* function wp_restore_group_inner_container() – For themes without theme.json file, make sure
to restore the inner div for the group block
to avoid breaking styles relying on that div. */

add_filter( 'render_block_core/group', 'wp_restore_group_inner_container', 10, 2 );

/* function wp_restore_image_outer_container */

add_filter( 'render_block_core/image', 'wp_restore_image_outer_container', 10, 2 );
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      1 to 1 of 1
      • WP_Block_Supports::get_instance() – Utility method to retrieve the main instance of the class.

      Call hooks

      File name: wp-includes/block-supports/layout.php
      Plugin ref: WordPress
      Version: 6.0
      Deprecated?: No
      API Letters: B,I,L,S,W

      Published:

      12th September 2021

      Last updated:

      9th June 2022

      Information

      File name: wp-includes/block-supports/layout.php
      Plugin ref: WordPress
      Version: 6.0
      Deprecated?: No
      API Letters: B,I,L,S,W
      WordPress core a2z

      WordPress core a2z

      WordPress core only

      WordPress version:6.0
      Gutenberg version:
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  core.wp-a2z.org
      (C) Copyright Bobbing Wide 2020-2022. All rights reserved


      Website designed and developed by Herb Miller 
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites