News Element 2.0.0 has 14 actions and 47 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when News Element fires an action
add_action( 'ne_bc/page_templates/full_width/after_content', function() {
// Your code runs here.
}, 10, 1 );
// Change a value News Element is about to use
add_filter( 'ne_bc/block_type_args', function( $args, $block, $name ) {
// Change $args here.
return $args;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters the register_block_type() args of a News Element block (modules use * it for nesting: parent, allowed_blocks, provides_context, skip_inner_blocks * …). */ apply_filters( 'ne_bc/block_type_args', $args, $block, $name ); -
/** * Filter the data the editor script reads from window.neBC (e.g. a host editor * that hides the Global Kit by emptying 'kit'). */ apply_filters( 'ne_bc/editor_data', [ 'blocks' => $schema, 'fonts' => Fonts::get_options(), 'kit' => Kit::instance()->get_public(), 'breakpoints' => CSS_Generator::breakpoints(), 'iconLibraries' => self::get_icon_libraries(), ] ); -
/** * Filters which kit fonts a page preloads. */ apply_filters( 'ne_bc/preload_fonts', $this->page_fonts( $typography ) ); -
/** * Add or change shapes: [ key => [ 'title', 'image', 'path', 'has_flip', * 'has_negative', 'height_only' ] ]. 'path' is the absolute SVG path; * '-negative' is appended for the inverted variant. */ apply_filters( 'ne_bc/shapes', $native ); -
/** * Filters the template chosen for a location. */ apply_filters( 'netb/template_id', $this->resolved[ $location ], $location ); -
/** * This filter is documented in wp-includes/blocks.php */ apply_filters( 'pre_render_block', null, $inner_block->parsed_block, $parent_block ); -
/** * This filter is documented in wp-includes/blocks.php */ apply_filters( 'render_block_context', $inner_block->context, $inner_block->parsed_block, $parent_block ); -
/** * This filter is documented in wp-includes/blocks.php */ apply_filters( 'render_block_data', $inner_block->parsed_block, $source_block, $parent_block ); -
do_action( 'ne_bc/page_templates/full_width/after_content' ); -
do_action( 'ne_bc/page_templates/full_width/before_content' ); -
apply_filters( 'ne_bc/query_args', $args, $settings, $prefix, $context ); -
do_action( 'ne_bm/page_templates/full_width/after_content' ); -
do_action( 'ne_bm/page_templates/full_width/before_content' ); -
apply_filters( 'ne_bm/title_prefix', '', (int) ( is_object( $p ) ? $p->ID : $p ) ); -
apply_filters( 'the_content', get_the_content() ); -
apply_filters( 'demo_library/isolate_theme_styles', true ); -
do_action( 'enqueue_block_assets' ); -
apply_filters( 'ne_bc/attribute_type', 'string', $type ); -
apply_filters( 'ne_bc/block_css', $css, $block, $settings ); -
do_action( 'ne_bc/block/after_render', $this ); -
do_action( 'ne_bc/block/before_render', $this ); -
do_action( 'ne_bc/block/controls_registered', $this ); -
apply_filters( 'ne_bc/breakpoints', self::BREAKPOINTS, $block ); -
apply_filters( 'ne_bc/container_animations', [ 'Fading' => [ 'fadeIn' => 'Fade In', 'fadeInDown' => 'Fade In Down', 'fadeInLeft' => 'Fade In Left', 'fadeInRight' => 'Fade In Right', 'fadeInUp' => 'Fade In Up', ], 'Zooming' => [ 'zoomIn' => 'Zoom In', 'zoomInDown' => 'Zoom In Down', 'zoomInLeft' => 'Zoom In Left', 'zoomInRight' => 'Zoom In Right', 'zoomInUp' => 'Zoom In Up', ], 'Bouncing' => [ 'bounceIn' => 'Bounce In', 'bounceInDown' => '... ); -
apply_filters( 'ne_bc/container_defaults', $defaults ); -
apply_filters( 'ne_bc/extensions', $list ); -
apply_filters( 'ne_bc/fonts', self::$index ); -
apply_filters( 'ne_bc/global_typography', true, $this ); -
apply_filters( "ne_bc/group_control/{$type}", [], $args ); -
apply_filters( 'ne_bc/icon_libraries', $libraries ); -
apply_filters( 'ne_bc/kit_css', $css, $kit ); -
do_action( 'ne_bc/kit_saved', $this->kit ); -
apply_filters( 'ne_bc/local_google_fonts', true ); -
apply_filters( 'ne_bc/modules', [ 'editor-overlay', 'page-templates', 'nested-elements', 'next-post' ] ); -
apply_filters( 'ne_bc/next_post_selectors', [ 'main.netb-single', 'main#content', 'main', 'article.type-post' ] ); -
apply_filters( 'ne_bc/page_templates', [ self::CANVAS => [ 'label' => __( 'News Element Canvas', 'news-element' ), 'file' => 'canvas.php', 'body_class' => 'ne-template-canvas', ], self::FULL_WIDTH => [ 'label' => __( 'News Element Full Width', 'news-element' ), 'file' => 'full-width.php', 'body_class' => 'ne-template-full-width', ], ] ); -
do_action( 'ne_bc/page_templates/canvas/after_content' ); -
do_action( 'ne_bc/page_templates/canvas/before_content' ); -
apply_filters( 'ne_bc/page_templates/post_types', $post_types ); -
apply_filters( 'ne_bc/page_templates/template_path', $path, $file ); -
apply_filters( "ne_bc/query_options/{$kind}", [], $request ); -
do_action( 'ne_bc/register_blocks', $this ); -
apply_filters( 'ne_bm/author_extras', ne_bm_author_extras_option() ); -
apply_filters( 'ne_bm/author_networks', array( 'website' => array( 'Website', 'globe' ), 'email' => array( 'Email', 'envelope' ), 'facebook' => array( 'Facebook', 'facebook' ), 'x' => array( 'X (Twitter)', 'twitter-x' ), 'instagram' => array( 'Instagram', 'instagram' ), 'youtube' => array( 'YouTube', 'youtube' ), 'tiktok' => array( 'TikTok', 'tiktok' ), 'pinterest' => array( 'Pinterest', 'pinterest' ), 'linkedin' => array( 'LinkedIn'... ); -
apply_filters( 'ne_bm/demo_library', $on ); -
apply_filters( 'ne_bm/load_all_block_styles', false ); -
apply_filters( 'ne_bm/meta_fields', $fields ); -
apply_filters( 'ne_bm/meta_item', '', $meta ); -
apply_filters( 'ne_bm/meta_keys', array_keys( Khobish_Helper::magnews_meta_fields() ) ); -
apply_filters( 'ne_bm/page_block_names', $names ); -
apply_filters( 'ne_bm/page_css_compiler', ne_bm_pcc_option() ); -
apply_filters( 'ne_bm/page_templates', [ self::CANVAS => [ 'label' => __( 'News Element Canvas', 'news-element' ), 'file' => 'canvas.php', 'body_class' => 'ne-template-canvas', ], self::FULL_WIDTH => [ 'label' => __( 'News Element Full Width', 'news-element' ), 'file' => 'full-width.php', 'body_class' => 'ne-template-full-width', ], ] ); -
do_action( 'ne_bm/page_templates/canvas/after_content' ); -
do_action( 'ne_bm/page_templates/canvas/before_content' ); -
apply_filters( 'ne_bm/page_templates/post_types', $post_types ); -
apply_filters( 'ne_bm/page_templates/template_path', $path, $file ); -
apply_filters( 'ne_bm/pre_title', ne_bm_pre_title_option() ); -
apply_filters( 'ne_bm/pre_title_post_types', array( 'post' ) ); -
apply_filters( 'ne_bm/tax_box/image_id', $id, $term );
Generated from News Element's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: