Changeset 3771980 for joinotify/trunk/admin/src/Core/Functions.php
- Timestamp:
- 10/29/2026 02:59:22 AM (7 days ago)
- File:
-
- 1 edited
-
joinotify/trunk/admin/src/Core/Functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
joinotify/trunk/admin/src/Core/Functions.php
r3771693 r3771980 801 801 802 802 /** 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 */ 814 function joinotify_register_placeholder_modifier( $name, $callback ) { 815 Extensions::register_placeholder_modifier( $name, $callback ); 816 } 817 818 819 /** 803 820 * Register a settings navigation tab. 804 821 *
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)