Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #59348, comment 2


Ignore:
Timestamp:
09/14/2023 03:19:35 PM (6 months ago)
Author:
frzsombor
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59348, comment 2

    v1 v2  
    33
    44{{{
    5 function filter_metadata_registration( $metadata ) {
     5function fzs_filter_metadata_registration( $metadata ) {
    66    if ($metadata['name'] === 'core/post-excerpt') {
    77        $metadata['attributes']['excerptLength'] = [
     
    1212    return $metadata;
    1313};
    14 add_filter( 'block_type_metadata', 'filter_metadata_registration' );
     14add_filter( 'block_type_metadata', 'fzs_filter_metadata_registration' );
    1515}}}