Plugin Directory


Ignore:
Timestamp:
10/29/2026 02:59:22 AM (7 days ago)
Author:
meumouse
Message:

Release 2.6.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • joinotify/trunk/admin/src/Core/Functions.php

    r3771693 r3771980  
    801801
    802802/**
     803 * Register a modifier that any placeholder token can carry after a pipe.
     804 *
     805 * "{{ wc_order_total | my_modifier:"a","b" }}" calls the callback with the token's
     806 * resolved value, the arguments and the payload; it returns the changed value (or
     807 * null to keep it). Built-in modifiers: remove, replace and remove_home_url.
     808 *
     809 * @since 2.6.1
     810 * @param string   $name     Modifier name: lowercase letters, digits and underscores.
     811 * @param callable $callback Modifier: function( string $value, array $args, array $payload ): string|null.
     812 * @return void
     813 */
     814function joinotify_register_placeholder_modifier( $name, $callback ) {
     815        Extensions::register_placeholder_modifier( $name, $callback );
     816}
     817
     818
     819/**
    803820 * Register a settings navigation tab.
    804821 *
Note: See TracChangeset for help on using the changeset viewer.