//* Stylesheet
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'truemag-css', get_template_directory_uri() . '/style.css' );
}
//* Remove Emojis
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
//* Login Logout Link
add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);
function add_login_logout_link($items, $args) {
ob_start();
wp_loginout('index.php');
$loginoutlink = ob_get_contents();
ob_end_clean();
$items .= '
'. $loginoutlink .'';
return $items;
}
add_filter("pmpro_besecure", "__return_true");
//* PMPro Free Membership Text
function my_pmpro_level_cost_text($text, $level)
{
if(pmpro_isLevelFree($level))
return "";
else
return $text;
}
add_filter("pmpro_level_cost_text", "my_pmpro_level_cost_text", 10, 2);
//* Join Button
function joinbtn() {
return 'Sign Up';
}
add_shortcode('joinbtn', 'joinbtn');
//* Instagram Feed Remove Styles
wp_dequeue_style( 'sb_instagram_styles' );
//*WP-BOUNCER ALLOW MORE THEN 1 LOGIN PER ACCOUNT:
function my_wp_bouncer_number_simultaneous_logins($num) {
return 3;
}
add_filter('wp_bouncer_number_simultaneous_logins', 'my_wp_bouncer_number_simultaneous_logins');
//* TN - Remove Query String from Static Resources
function remove_css_js_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'remove_css_js_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_css_js_ver', 10, 2 );
Lost Password | Mills Video Productions - MVP