• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / register_block() – Registers the block for use in Gutenberg This is done via an action so that we can disable registration if we need to.

You appear to be a bot. Output may be restricted

Description

Registers the block for use in Gutenberg This is done via an action so that we can disable registration if we need to.

Usage

register_block();

Parameters

Returns

void

Source

File name: jetpack/extensions/blocks/amazon/amazon.php


Lines:

1 to 7 of 7
function register_block() {
  Blocks::jetpack_register_block(
    BLOCK_NAME,
    array( 'render_callback' => __NAMESPACE__ . '\load_assets' )
  );
}
 

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 4 April 2020 | Last updated: 10 December 2020

Primary Sidebar

Information

Function name: register_block
Plugin ref: Jetpack
Version: 9.2
Sourcefile: extensions/blocks/amazon/amazon.php
File ref: extensions/blocks/amazon/amazon.php
Deprecated?: No
API Letters: B,R

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 5.6
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:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2021. All rights reserved.


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

  • Home
  • Blog
  • Sitemap
  • Sites