wp_link_manager_disabled_message

Outputs the 'disabled' message for the WordPress Link Manager.

Description

wp_link_manager_disabled_message(); 

Usage

  1. if ( !function_exists( 'wp_link_manager_disabled_message' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/bookmark.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_link_manager_disabled_message(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/bookmark.php  
  1. function wp_link_manager_disabled_message() { 
  2. global $pagenow; 
  3. if ( 'link-manager.php' != $pagenow && 'link-add.php' != $pagenow && 'link.php' != $pagenow ) 
  4. return; 
  5.  
  6. $really_can_manage_links = current_user_can( 'manage_links' ); 
  7.  
  8. if ( $really_can_manage_links && current_user_can( 'install_plugins' ) ) { 
  9. $link = network_admin_url( 'plugin-install.php?tab=search&s=Link+Manager' ); 
  10. wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) ); 
  11.  
  12. wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );