芝麻web文件管理V1.00
编辑当前文件:/home/dcqnetm/intuns/wp-content/plugins/official-facebook-pixel/core/FacebookPluginUtils.php
$current_user->user_email, 'first_name' => $current_user->user_firstname, 'last_name' => $current_user->user_lastname, 'id' => $current_user->ID, ); } // All standard WordPress user roles are considered internal unless they have // the Subscriber role. // WooCommerce uses the 'read' capability for its customer role. // Also check for the 'upload_files' capability to account for the shop_worker // and shop_vendor roles in Easy Digital Downloads. // https://wordpress.org/support/article/roles-and-capabilities public static function isInternalUser() { return current_user_can('edit_posts') || current_user_can('upload_files'); } public static function endsWith( $haystack, $needle ) { $length = strlen( $needle ); if( !$length ) { return false; } return substr( $haystack, -$length ) === $needle; } public static function string_contains($haystack, $needle) { return (bool) strstr($haystack, $needle); } }