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 | |
function wpum_unload_styles() { | |
wp_dequeue_style( 'wpum-frontend' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wpum_unload_styles', 11 ); |
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 | |
add_filter( 'wpum_already_logged_in_links', function ( $links ) { | |
unset( $links['account'] ); // either profile, account, logout | |
return $links; | |
} ); |
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 | |
add_filter( 'template_include', function ( $template ) { | |
global $wp; | |
if ( ! isset( $wp->query_vars ) ) { | |
return $template; | |
} | |
if ( ! isset( $wp->query_vars['page_id'] ) ) { |
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 | |
add_filter( 'wpum_send_registration_user_email', function ( $check ) { | |
if ( isset( $_POST['action'] ) && 'createuser' === $_POST['action'] ) { | |
return false; | |
} | |
return $check; | |
} ); |
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 | |
/** | |
* Remove an object filter. | |
* | |
* @param string $tag Hook name. | |
* @param string $class Class name. Use 'Closure' for anonymous functions. | |
* @param string|void $method Method name. Leave empty for anonymous functions. | |
* @param string|int|void $priority Priority |
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 | |
add_filter( 'wpumcr_pre_post_restriction', function ( $is_restricted, $post ) { | |
$posts = array( 684, 685 ); // CHANGE THIS to the posts you want to restrict with the OR logic | |
if ( ! in_array( $post->ID, $posts ) ) { | |
return $is_restricted; | |
} |
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 | |
function my_wpum_rearrange_account_tabs( $tabs ) { | |
// Find the correct slug used in the URL, alter the priority | |
$tabs['email-subscriptions'] ['priority'] = 5; | |
return $tabs; | |
} | |
add_filter( 'wpum_get_account_page_tabs', 'my_wpum_rearrange_account_tabs', 100 ); |
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 | |
add_filter( 'wpum_new_user_notification_generate_password', '__return_false' ); |