Inserting register/login form shortcode into the restricted access message
-
Hi,
I want to edit the global and/or custom restricted access messages to insert the register/login form below the message.
The custom snippet below has been advised by the plugin authors before but it is not a solution to the above problem, or I am not how to make it right.
Thanks
add_filter("um_get_option_filter__restricted_access_message",function( $value ){ if( is_admin() ) return $value; if ( version_compare( get_bloginfo('version'),'5.4', '<' ) ) { return do_shortcode( $value ); } else { return apply_shortcodes( $value ); } return $value; });
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Inserting register/login form shortcode into the restricted access message’ is closed to new replies.