• Resolved nootropic777

    (@nootropic777)


    Hi, kinda new here and thought this would be a perfect plugin for a software portal. The user permissioning is great. However, I cannot figure out how to change the “Pages” & “Files” links to “Software” & “Documentation”. How might I be able to do this?

    Thanks!

    http://ww.wp.xz.cn/plugins/customer-area/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    Hi,

    This can be done using this code in your theme’s functions.php file:

    function my_files_action( $action ) {
      $new_action = $action;
      $new_action['label'] = "Software";
      $new_action['hint'] = "Available Software";
      return $new_action;
    }
    add_filter('cuar_show_private_files_action', 'my_files_action');

    Similarly, for pages:

    function my_pages_action( $action ) {
      $new_action = $action;
      $new_action['label'] = "Documentation";
      $new_action['hint'] = "Available Documentation";
      return $new_action;
    }
    add_filter('cuar_show_private_pages_action', 'my_pages_action');
    Thread Starter nootropic777

    (@nootropic777)

    that worked! Thanks.

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

The topic ‘Changing Link Names’ is closed to new replies.