how can I remove the button "add registration form"

Home Forums User Registration how can I remove the button "add registration form"

This topic contains 1 reply, has 2 voices, and was last updated by  sanjeev3 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13850

    tonnick
    Participant

    hello
    I have a website with custom posts type and I have the button “add registration form” above the main post field. but I do not want anybody add a resitration form in any post.
    then, how can remove it ?
    thx.

    #14338

    sanjeev3
    Member

    Hi there,

    There is no automatic option to remove the button. You can still acheive this by adding the following codes in your child theme’s functions.php

    add_filter( 'ur_display_media_button', 'ur_custom_capability' );
    function ur_custom_capability() {
        return false;
    }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.