Created
November 24, 2022 19:08
-
-
Save alanef/3e4c34edecf1a77b8a5c478818b9a6af to your computer and use it in GitHub Desktop.
qem_event_register filter
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
| add_filter( | |
| 'qem_event_register', | |
| /** | |
| * @param $args https://developer.wordpress.org/reference/functions/register_post_type/#parameters | |
| * | |
| * @return array | |
| */ | |
| function ( $args ) { | |
| $args['rewrite'] = array( 'slug' => 'my_custom_event_slug' ); | |
| return $args; | |
| }, | |
| 10, | |
| 1 | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment