Disable the Title link on Dashboard

Support MB Frontend Submission Disable the Title link on Dashboard

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45359
    WillWill
    Participant

    Hi, how do I disable user to click on the "Title" link at MB Frontend Dashboard? Thank you.

    #45367
    PeterPeter
    Moderator

    Hello Will,

    There is a filter hook rwmb_frontend_dashboard_post_title that supports modifying the post title in the frontend dashboard. Please read more about frontend dashboard filters in the documentation
    https://docs.metabox.io/extensions/mb-frontend-submission/#dashboard

    For example:

    add_filter( 'rwmb_frontend_dashboard_post_title', function( $title ) {
    	$title = '<span>' . get_the_title() . '</span>';
    	return $title;
    } );
    #47842
    Tanja KropfTanja Kropf
    Participant

    To piggyback on this, if the title shows, can Meta Box please correct the spelling of "Howdie" to "Howdy"? It's currently misspelled.

    #47847
    PeterPeter
    Moderator

    Hello Tanja,

    You can use the filter hook rwmb_frontend_welcome_message to adjust the welcome message of the frontend dashboard. Here is an example:

    add_filter( 'rwmb_frontend_welcome_message', function( $message, $user, $query ) {
        $message = '<h3>' . esc_html( sprintf( __( 'Howdy, %s!', 'mb-frontend-submission' ), $user->display_name ) ) . '</h3>';
        $message .= '<p>' . esc_html( sprintf( __( 'You have %1$d posts.', 'mb-frontend-submission' ), $query->post_count ) ) . '</p>';
    
        return $message;
    }, 10, 3 );

    Refer to the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#dashboard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.