Created
October 16, 2024 10:23
-
-
Save JarrydLong/3e322146622614923262dbc6ab7c887c 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 //do not copy | |
| function mypmpro_remove_map_from_directory_page(){ | |
| if( ! empty( $_REQUEST['ps'] ) ){ | |
| remove_action( 'pmpro_member_directory_before', 'pmpromm_load_map_directory_page', 10, 2 ); | |
| } | |
| } | |
| add_action( 'init', 'mypmpro_remove_map_from_directory_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment