Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: CPT( shortcoder_editor ) generates web pages.
    JOIT LLC.
    Participant

    Hi, Aakash.

    Thank you for your additional information.

    I think the fix helps many people.

    Best regards.

    in reply to: CPT( shortcoder_editor ) generates web pages.
    JOIT LLC.
    Participant

    Hi, Aakash.
    Thank you for your quick reply.

    I appreciate your considering it positively.

    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

    I will write this kind of code at function.php until your update to this issue.

    
    function my_func_name() {
    	if( is_singular('shortcoder_editor') ){
    		global $wp_query;
    		$wp_query->set_404();
    		status_header(404);
    	}
    }
    add_action( 'template_redirect', 'my_func_name' );
    

    ※You need know you will not be able to access my web-page created by CPT(shortcoder_editor).

    I will wait looking forward to your update!

Viewing 2 posts - 1 through 2 (of 2 total)

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter