Viewing 5 replies - 1 through 5 (of 5 total)
  • saidahhamizah

    (@saidahhamizah)

    hi
    goto setting>permalink
    if you want the link named as your title select post name
    otherwise you can customize te name in custom structure

    Thread Starter Belal Khan

    (@belalkhan2292)

    No. i want hide my permalink not change my option

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Can you elaborate a little more on what you mean by “permalink from dashboard”?

    Thread Starter Belal Khan

    (@belalkhan2292)

    i want hide permalink below the add media link. see your dashboard here is a is permalink . when you post a post any post .

    If I understand correctly you want to hide the “Permalinks” menu link in WP-Admin > Settings.

    Create a PHP file in the following location:

    wp-content/mu-plugins/block-permalinks.php

    If mu-plugins doesn’t exist create it. Place the following code in it:

    <?php
    add_action( 'admin_menu', 'belalkhan2292_remove_menus' );
    
    function belalkhan2292_remove_menus() {
        remove_submenu_page( 'options-general.php', 'options-permalink.php' );
    }

    This will remove the link but users can directly access the page if the have the link, so add the following code too:

    add_action( 'admin_init', 'belalkhan2292_block_permalinks' );
    
    function belalkhan2292_block_permalinks() {
            global $pagenow;
            if ( 'options-permalink.php' == $pagenow ) {
                    wp_die( 'Not allowed' );
            }
    }

    This blocks the page for all users (including you).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide Permalink from dashboard’ is closed to new replies.