src/Util/Theme.php
public static function optionsLink($description=null, $display_inline=false) {
    if(!(is_user_logged_in() && current_user_can('manage_options'))) return null;
    
    if(is_null($description)) {
      $description = 'this';
    }
    $options = AppOption::getInstance();
    return self::editLink($options->ID, 'app-option', $description.' in options', $display_inline);
  }
public static function optionsLink($description=null, $display_inline=false) {
    if(!(is_user_logged_in() && current_user_can('manage_options'))) return null;
    
    if(is_null($description)) {
      $description = 'this';
    }
    $options = AppOption::getInstance();
    return self::editLink($options->ID, 'app-option', $description.' in options', $display_inline);
  }
public static function optionsLink ( $ description = null , $ display_inline = false ) { if ( ! ( is_user_logged_in ( ) && current_user_can ( 'manage_options' ) ) ) return null ; if ( is_null ( $ description ) ) { $ description = 'this' ; } $ options = AppOption :: getInstance ( ) ; return self :: editLink ( $ options -> ID , 'app-option' , $ description . ' in options' , $ display_inline ) ; }
Get App Options link when admin is logged in
@param string $description
@param bool $display_inline
@return string
Get App Options link when admin is logged in