/home/techb158/public_html/wp-content/plugins/wordpress-seo/src/helpers
NameSizeModeActions
open-graph/-0755rm
schema/-0755rm
twitter/-0755rm
aioseo-helper.php12660644editdlrm
asset-helper.php25720644editdlrm
attachment-cleanup-helper.php22940644editdlrm
author-archive-helper.php53750644editdlrm
blocks-helper.php23780644editdlrm
capability-helper.php21160644editdlrm
crawl-cleanup-helper.php82940644editdlrm
curl-helper.php6550644editdlrm
current-page-helper.php165120644editdlrm
date-helper.php32080644editdlrm
environment-helper.php7930644editdlrm
first-time-configuration-notice-helper.php54860644editdlrm
home-url-helper.php6810644editdlrm
image-helper.php119720644editdlrm
import-cursor-helper.php13920644editdlrm
import-helper.php7160644editdlrm
indexable-helper.php94590644editdlrm
indexable-to-postmeta-helper.php96300644editdlrm
indexing-helper.php129920644editdlrm
language-helper.php27160644editdlrm
lock-helper.php29080644editdlrm
meta-helper.php29820644editdlrm
notification-helper.php20570644editdlrm
options-helper.php47580644editdlrm
pagination-helper.php58150644editdlrm
permalink-helper.php16410644editdlrm
post-helper.php55530644editdlrm
post-type-helper.php73500644editdlrm
primary-term-helper.php13980644editdlrm
product-helper.php11030644editdlrm
redirect-helper.php17680644editdlrm
require-file-helper.php3260644editdlrm
robots-helper.php17770644editdlrm
robots-txt-helper.php34780644editdlrm
route-helper.php6940644editdlrm
sanitization-helper.php10560644editdlrm
score-icon-helper.php28460644editdlrm
short-link-helper.php36070644editdlrm
site-helper.php5660644editdlrm
social-profiles-helper.php109910644editdlrm
string-helper.php12180644editdlrm
taxonomy-helper.php51000644editdlrm
url-helper.php83240644editdlrm
user-helper.php40260644editdlrm
wincher-helper.php25690644editdlrm
woocommerce-helper.php13020644editdlrm
wordpress-helper.php5120644editdlrm
wpdb-helper.php9370644editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/wordpress-seo/src/helpers/capability-helper.php (2116B)
has_any( [ 'wpseo_manage_options', $capability ] ); } /** * Retrieves the users that have the specified capability. * * @param string $capability The name of the capability. * * @return array The users that have the capability. */ public function get_applicable_users( $capability ) { $applicable_roles = $this->get_applicable_roles( $capability ); if ( $applicable_roles === [] ) { return []; } return \get_users( [ 'role__in' => $applicable_roles ] ); } /** * Retrieves the roles that have the specified capability. * * @param string $capability The name of the capability. * * @return array The names of the roles that have the capability. */ public function get_applicable_roles( $capability ) { $roles = \wp_roles(); $role_names = $roles->get_names(); $applicable_roles = []; foreach ( \array_keys( $role_names ) as $role_name ) { $role = $roles->get_role( $role_name ); if ( ! $role ) { continue; } // Add role if it has the capability. if ( \array_key_exists( $capability, $role->capabilities ) && $role->capabilities[ $capability ] === true ) { $applicable_roles[] = $role_name; } } return $applicable_roles; } /** * Checks if the current user has at least one of the supplied capabilities. * * @param array $capabilities Capabilities to check against. * * @return bool True if the user has at least one capability. */ private function has_any( array $capabilities ) { foreach ( $capabilities as $capability ) { if ( \current_user_can( $capability ) ) { return true; } } return false; } }