Shortcode for user account page?

I am looking at the code generated by the [ms-membership-account] shortcode and would like to remove the ability for users to change their membership info. Is there any documentation for this shortcode or should I customize what is there?

  • Vaughan

    Hi Nick,

    Hope you're well?

    We don't have any documentation on specific shortcodes themselves, but from what you describe, it would probably be best to just customize what is there.

    I note on some though, there's an actual filter for the content, so you could possibly use a custom filter to customize.

    for instance in /protected-content/app/controller/class-ms-controller-frontend.php

    public function user_account( $content ) {
    		remove_filter( 'the_content', 'wpautop' );
    
    		if ( ! MS_Helper_Shortcode::has_shortcode( MS_Helper_Shortcode::SCODE_MS_ACCOUNT, $content ) ) {
    			$content .= do_shortcode( '['. MS_Helper_Shortcode::SCODE_MS_ACCOUNT .']' );
    		}
    
    		return apply_filters(
    			'ms_controller_frontend_user_account',
    			$content,
    			$this
    		);
    	}

    But if you run into any issues, let us know and we can take a look for you.

    Hope this helps.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.