Example #1
0
 function is_category_permitted_by_optimizemember($cat_id = FALSE)
 {
     if ($cat_id && c_ws_plugin__optimizemember_catgs_sp::check_specific_catg_level_access($cat_id, true)) {
         return false;
     }
     /**/
     return true;
 }
Example #2
0
 /**
  * Status for Categories.
  *
  * @package optimizeMember\Lock_Icons
  * @since 1.5
  *
  * @param str $value Existing value for this data column.
  * @param str $column_name Column ID/Name. We need to look at this to fill the `(s2)` column.
  * @param int|str $id Expecting a numeric Category ID to be passed through by the Filter.
  * @return str If `(s2)` column, return status. Else, existing ``$value``.
  */
 public static function _lock_icons_return_value_categories($value = FALSE, $column_name = FALSE, $id = FALSE)
 {
     return $column_name === "ws_plugin__optimizemember_pro_lock_icons" ? c_ws_plugin__optimizemember_pro_lock_icons_in::_return_lock_icons_description(c_ws_plugin__optimizemember_catgs_sp::check_specific_catg_level_access($id, false)) : $value;
 }