porterwp
  • Welcome
  • Documentation
    • Directory Structure
    • Configuration Files
    • Porter Json
    • Posttypes Json
    • Taxonomies Json
    • Blocks Json
    • Posttypes Taxonomies
    • Assets
    • Blocks
    • Make Sh
    • Premium Filters Block
    • Ajax Filters
    • Caching
    • Hooks
    • Admin Ui
  • Filters
    • porter_acf_option_defaults
    • porter_block_folders
    • porter_block_path
    • porter_block_patterns_path
    • porter_blocks_array
    • porter_blockstyle_args
    • porter_blockstyles_path
    • porter_core_blockstyles_path
    • porter_core_pattern_categories
    • porter_default_object_args
    • porter_dynamic_blocks
    • porter_editor_scripts_default_args
    • porter_editor_styles_default_args
    • porter_filter_event_date
    • porter_filter_parsed_query
    • porter_filter_tax_query_relation
    • porter_public_scripts_default_args
    • porter_public_styles_default_args
    • porter_wp_config_filepath
    • porter_wp_inc_filepath
    • porter_wp_inc_filepath_exclusions
    • porter_wp_inc_load_first_filepaths
Powered by GitBook
On this page
  • Description
  • Parameters
  • Example
  1. Filters

porter_blocks_array

Type: Filter Location: includes/premium/custom-blocks/init.php:241

apply_filters( 'porter_blocks_array', ... );

Description

Modify the value passed through this filter to customise PorterWP behaviour.

Parameters

Position
Variable
Description

1

$blocks

Description pending

Example

add_filter( 'porter_blocks_array', function ( $value ) {
    // Modify value here.
    return $value;
} );
Previousporter_block_patterns_pathNextporter_blockstyle_args

Last updated 1 day ago