Created
October 1, 2025 12:31
-
-
Save plugin-republic/e4dbc134b8329b71ca4c33de93b37c79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Hook: the_title. | |
| * Modify the product name. | |
| */ | |
| function plugin_republic_the_title( $product_name, $product_id ) { | |
| // Modify the $product_name here | |
| return $product_name; | |
| } | |
| add_filter( 'the_title', 'plugin_republic_the_title', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment