%PDF-
%PDF-
Mini Shell
Mini Shell
<?php
namespace WPaaS;
use GoDaddy\WordPress\Plugins\NextGen;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
trait Helpers {
/**
* Represent if gd-config.php exists.
*
* @var boolean
*/
private static $gd_config_exists = null;
/**
* Return the plugin version.
*
* @return string|false
*/
public static function version() {
return Plugin::$data['version'];
}
/**
* Return the plugin basename.
*
* @return string|false
*/
public static function basename() {
return Plugin::$data['basename'];
}
/**
* Return the plugin base directory path (with trailing slash).
*
* @return string|false
*/
public static function base_dir() {
return Plugin::$data['base_dir'];
}
/**
* Return the plugin assets URL (with trailing slash).
*
* @param string $path (optional)
*
* @return string|false
*/
public static function assets_url( $path = '' ) {
$path = ( 0 === strpos( $path, '/' ) ) ? $path : '/' . $path;
return ( Plugin::$data['assets_url'] ) ? untrailingslashit( Plugin::$data['assets_url'] ) . $path : false;
}
/**
* Return the plugin assets directory path (with trailing slash).
*
* @param string $path (optional)
*
* @return string|false
*/
public static function assets_dir( $path = '' ) {
$path = ( 0 === strpos( $path, '/' ) ) ? $path : '/' . $path;
return ( Plugin::$data['assets_url'] ) ? untrailingslashit( Plugin::$data['assets_dir'] ) . $path : false;
}
/**
* Return an array of bundled plugins that have been loaded.
*
* @return array
*/
public static function bundled_plugins_loaded() {
return ! empty( Plugin::$data['bundled_plugins_loaded'] ) ? (array) Plugin::$data['bundled_plugins_loaded'] : [];
}
/**
* Return a plugin config.
*
* @param string $config
*
* @return mixed|false
* @deprecated 4.149.0
*/
public static function config( $config ) {
return false;
}
/**
* Check if the site locale is English.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_english() {
$result = ( 'en' === substr( get_locale(), 0, 2 ) );
/**
* Filter if the site locale is English.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_english', $result );
}
/**
* Return an array of supported brands.
*
* @return array
* @since 3.1.0
*
*/
public static function brands() {
$brands = [ 'gd', 'mt', 'reseller' ];
/**
* Filter the array of supported brands.
*
* @since 3.1.0
*
* @var array
*/
return (array) apply_filters( 'wpaas_brands', $brands );
}
/**
* Return the current brand.
*
* @return string
* @since 3.1.0
*
*/
public static function brand() {
$brand = ( self::reseller_id() ) ? 'reseller' : null; // Default
$brands = array_diff( self::brands(), [ 'reseller' ] ); // Non-default
foreach ( $brands as $brandname ) {
$callback = 'is_' . trim( $brandname );
if ( is_callable( [ __CLASS__, $callback ] ) && self::$callback() ) {
$brand = $brandname;
break;
}
}
/**
* Filter the current brand.
*
* @since 3.1.0
*
* @var string
*/
return (string) apply_filters( 'wpaas_brand', $brand );
}
/**
* Return the value whose array key matches the current brand.
*
* @param array $values
* @param mixed $default (optional)
*
* @return mixed
* @since 3.1.0
*
*/
public static function use_brand_value( $values, $default = null ) {
return isset( $values[ self::brand() ] ) ? $values[ self::brand() ] : $default;
}
/**
* Check if this is a reseller site.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_reseller() {
$result = ( 'reseller' === self::brand() );
/**
* Filter if this is a reseller site.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_reseller', $result );
}
/**
* Check if this is a GD site.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_gd() {
$result = ( 1 === self::reseller_id() );
/**
* Filter if this is a GD site.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_gd', $result );
}
/**
* Check if this is a 123 Reg site.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_123_reg(): bool {
$result = 587240 === self::reseller_id() || 525844 === self::reseller_id();
/**
* Filter if this is a 123 Reg site.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_123_reg', $result );
}
/**
* Check if this is a MT site.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_mt() {
$result = ( 495469 === self::reseller_id() );
/**
* Filter if this is a MT site.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_mt', $result );
}
/**
* For private labelled brands.
*
* @return bool
*/
public static function is_reseller_brand() {
$reseller_brands = [
"Media Temple" => 495469,
"123 Reg - OLD" => 525844,
"123 Reg - NEW" => 587240,
"Host Europe" => 525847,
"Domain Factory" => 525845,
"TSO Host" => 527397,
"Heart Internet" => 525848
];
if ( in_array( GD_RESELLER, $reseller_brands ) ) {
return true;
}
return false;
}
/**
* Check the customer type to provide the correct wording for the php update alert.
*
* @return string
*/
public static function get_update_php_alert_text() {
$direct_update_url = wp_get_direct_php_update_url();
$update_php_button = $direct_update_url ? '
<a href=' . $direct_update_url . ' class="button button-small button-primary alignright" target="_blank">
<div>
' . __( "Update Now" ) . '
<span class="screen-reader-text">' . __( "(opens in a new tab)" ) . '</span>
<span aria-hidden="true" class="dashicons dashicons-external"></span>
</div>
</a>' : '';
$update_php_title_text = __( 'Update to the latest version of PHP to make your site faster and more secure', 'gd-system-plugin' );
$update_php_description_text = __( 'Your current PHP version (' . PHP_VERSION . ') is no longer supported. The update is quick and reduces your risk of your site crashing.', 'gd-system-plugin' );
$format = __( '
<div>
<div>
' . $update_php_button . '
<div><strong>' . $update_php_title_text . '</strong></div>
' . $update_php_description_text . '
%1$s
</div>
</div>
' );
/**
* For GoDaddy customer.
*/
if ( self::is_gd() ) {
$learn_more_link = '<a
href="https://www.godaddy.com/help/change-my-php-version-32202"
target="_blank"
rel="noopener">
' . __( "Learn how to update to the recommended version of PHP for your site.", 'gd-system-plugin' ) . '
</a>';
return sprintf( $format, $learn_more_link );
}
/**
* For private labelled brands.
*/
if ( self::is_reseller_brand() ) {
$learn_more_link = '<a
href="' . 'https://www.secureserver.net/help/a-41164?pl_id=' . GD_RESELLER . '"
target="_blank"
rel="noopener">
' . __( "Learn how to update to the recommended version of PHP for your site.", 'gd-system-plugin' ) . '
</a>';
return sprintf( $format, $learn_more_link );
}
/**
* Default value For resellers.
*/
$contact_support_text = __( 'Contact support for more info.', 'gd-system-plugin' );
return sprintf( $format, $contact_support_text );
}
/**
* Check if a given (or current) URL is using 'www' in the domain.
*
* @param string $url (optional)
*
* @return bool
*/
public static function is_www_url( $url = '' ) {
$url = $url ? $url : ( isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : '' );
return ( 0 === strpos( wp_parse_url( $url, PHP_URL_HOST ), 'www.' ) );
}
/**
* Check if the WP Admin should be forced SSL.
*
* @return bool
*/
public static function is_ssl_admin() {
return ( defined( 'FORCE_SSL_ADMIN' ) && FORCE_SSL_ADMIN ); // @codingStandardsIgnoreLine
}
/**
* Check if the login should be forced SSL.
*
* @return bool
*/
public static function is_ssl_login() {
return ( defined( 'FORCE_SSL_LOGIN' ) && FORCE_SSL_LOGIN ); // @codingStandardsIgnoreLine
}
/**
* Check if this is a staging site.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_staging_site() {
$result = defined( 'GD_STAGING_SITE' ) ? GD_STAGING_SITE : false;
/**
* Filter if this is a staging site.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_staging_site', $result );
}
/**
* Get the current environment type.
*
* @return string
*/
public static function get_env() {
$result = 'prod';
if ( $env = getenv( 'SERVER_ENV' ) ) {
$result = $env;
} elseif ( defined( 'GD_TEMP_DOMAIN' ) && strpos( GD_TEMP_DOMAIN, '.ide' ) !== false ) {
$result = 'test';
}
/**
* Filter the current environment type.
*
* @since 2.0.1
*
* @var string
*/
return (string) apply_filters( 'wpaas_get_env', $result );
}
/**
* Check for a specific environment.
*
* @param string|array $env
*
* @return bool
*/
public static function is_env( $env ) {
$current = self::get_env();
$result = is_array( $env ) ? in_array( $current, $env, true ) : ( $env === $current );
/**
* Filter the check for a specific environment.
*
* @since 2.0.1
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_env', $result );
}
/**
* Check if this is a temporary domain.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_temp_domain() {
$result = self::is_staging_site() || ( defined( 'GD_TEMP_DOMAIN' ) && GD_TEMP_DOMAIN === parse_url( home_url(), PHP_URL_HOST ) );
/**
* Filter if this is a temporary domain.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_temp_domain', $result );
}
/**
* Check if this site is in multiple domain mode.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_multi_domain_mode() {
$result = get_option( 'gd_system_multi_domain' );
/**
* Filter if this site is in multiple domain mode.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_multi_domain_mode', ( false !== $result ) );
}
/**
* Every location a rendered gd-config.php is known to be delivered to.
*
* This list is the platform-detection seam: is_wpaas() is true only if one of these
* is readable, Configs::__construct() require_once's the first match, and
* Diagnostics reports it. It used to be copy-pasted into all three, which is how
* they drifted.
*
* Order is significant and legacy-first: an on-prem or classic WPaaS site keeps
* matching exactly the path it matched before. `/configs/gd-config.php` is appended
* for platforms that deliver the file outside the webroot and load it via
* auto_prepend_file — re-require_once'ing it there is a no-op, because PHP has
* already recorded that exact path as included.
*
* Not filterable, and a platform that delivers the file elsewhere is added here.
* is_wpaas() is derived from this list and Plugin::validate_wpaas() reads a false
* there as "this site migrated off the platform" and self-destructs, taking every
* enforcement class with it — so nothing outside this file may empty the list.
*
* @since 4.302.0
*
* @return string[]
*/
public static function gd_config_paths() {
$gd_config_paths = [
ABSPATH . '../local/rendered/gd-config.php',
ABSPATH . 'gd-config.php',
WPMU_PLUGIN_DIR . '/bin/gd-config.php',
'/configs/gd-config.php',
];
return $gd_config_paths;
}
/**
* Checks if gd-config.php exists.
*
* @return bool
*/
private static function gd_config_exists() {
return (bool) self::find_gd_config_path();
}
/**
* The first readable gd-config.php, or an empty string if there is none.
*
* @since 4.302.0
*
* @return string
*/
public static function find_gd_config_path() {
foreach ( self::gd_config_paths() as $path ) {
if ( is_readable( $path ) ) {
return $path;
}
}
return '';
}
/**
* Check if this site is hosted on WPaaS.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_wpaas() {
if ( self::$gd_config_exists == null ) {
self::$gd_config_exists = self::gd_config_exists();
}
$platformCLI = getenv( 'WPAAS_CLI' );
$platformWeb = ! empty( $_SERVER['WPAAS_SITE_ID'] ) || getenv( 'WPAAS_SITE_ID' ) || getenv( 'WPAAS_V2_SITE_ID' );
$userENV = getenv( 'USER' );
$platformSFTP = preg_match( '/^site[0-9]+$/', $userENV );
$result = ( $platformWeb || $platformCLI || $platformSFTP ) && self::$gd_config_exists;
/**
* Filter if this site is hosted on WPaaS.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'is_wpaas', $result );
}
/**
* Check if this site is hosted on WPaaS V2.
*
* @return bool
* @since 4.148.0
*/
public static function is_wpaas_v2() {
if ( ! self::is_wpaas() ) { // In case someone skips is_wpaas check
return false;
}
$result = ! empty( getenv( 'WPAAS_V2_SITE_ID' ) );
return (bool) apply_filters( 'is_wpaas_v2', $result );
}
/**
* Check if this site is on the new Managed Hosting Platform (MHP).
*
* MHP has no legacy accountUid data model, and the wpsecurity / V3 Public API
* hosts (wp-api.wpsecurity.godaddy.com, mwp.api.phx3.godaddy.com) are
* decommissioned. We cannot key off an empty GD_ACCOUNT_UID here — MHP fills
* it with the app nanoid (hosting_apps.id) — so the platform is detected by the
* delivered hosting-API lane, the same delivered-constant idiom SSO
* (GD_SSO_API_URL) and cache flush (Hosting_API::is_available()) already use.
*
* @return bool
* @since 4.303.0
*/
public static function is_mhp() {
$is_mhp = \WPaaS\Hosting_API::is_available()
|| ( defined( 'GD_HOSTING_API_URL' ) && '' !== trim( (string) GD_HOSTING_API_URL ) );
/**
* Filter whether this site is on the Managed Hosting Platform.
*
* @since 4.303.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_is_mhp', $is_mhp );
}
/**
* Check if the log is enabled.
*
* @return bool
*/
public static function is_log_enabled() {
/**
* Filter if the log is enabled.
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_log_enabled', true );
}
/**
* Check if the file editor has been enabled.
*
* @return bool
*/
public static function is_file_editor_enabled() {
return ( 1 === (int) get_site_option( 'wpaas_file_editor_enabled' ) );
}
/**
* Return the date this site was created.
*
* @param string $format (optional)
*
* @return int|string
* @since 2.0.0
*
*/
public static function site_created_date( $format = 'U' ) {
// Use when this constant was introduced as default (Tue, 22 Dec 2015 00:00:00 GMT)
$time = defined( 'GD_SITE_CREATED' ) ? (int) GD_SITE_CREATED : 1450742400;
$format = empty( $format ) ? 'U' : $format;
$date = ( 'U' === $format ) ? $time : gmdate( $format, $time );
/**
* Filter the date this site was created.
*
* @since 2.0.0
*
* @var int|string
*/
return apply_filters( 'wpaas_site_created_date', $date );
}
/**
* Checks if site is created after certain point in time
*
* @param int $datetime (timestamp)
*
* @return bool
* @since 4.16.0
*
*/
public static function is_site_created_after( $datetime ) {
return defined( 'GD_SITE_CREATED' ) && (int) GD_SITE_CREATED >= $datetime;
}
/**
* Check if site is in some % based on date of creation
* It will look by default from date time of oldest account/site created until now
*
* @param int $percentage
* @param int $date_from // timestamp
* @param int $date_end // timestamp
*
* @return bool
* @since 4.35.0
*
*/
public static function is_site_in_percentage( $percentage, $date_from = null, $date_end = null ) {
if ( ! defined( 'GD_SITE_CREATED' ) || $percentage <= 0 || $percentage > 100 ) {
return false;
}
if ( empty( $date_from ) ) {
$date_from = 1379462400; // 09.18.2013 00:00:00 GMT - oldest account/site entry in PROD DB
}
if ( empty( $date_end ) ) {
$date_end = time();
}
$site_created_timestamp = (int) GD_SITE_CREATED;
if ( $site_created_timestamp < $date_from || $site_created_timestamp > $date_end ) {
return false;
}
$day = (int) date( 'd', $site_created_timestamp );
$days_in_month = (int) date( 't', $site_created_timestamp );
$number_of_days_allowed = (int) ( $percentage / 100 * $days_in_month );
return $day <= $number_of_days_allowed;
}
/**
* Return the date of the first Administrator login.
*
* @param string $format (optional)
*
* @return mixed
* @since 2.0.0
*
*/
public static function first_login_date( $format = 'U' ) {
$time = (int) get_option( 'gd_system_first_login' );
$format = empty( $format ) ? 'U' : $format;
$date = ( $time && 'U' === $format ) ? $time : ( $time ? gmdate( $format, $time ) : false );
return $date;
}
/**
* Return the date of the last Administrator login.
*
* @param string $format (optional)
*
* @return mixed
* @since 2.0.0
*
*/
public static function last_login_date( $format = 'U' ) {
$time = (int) get_option( 'gd_system_last_login' );
$format = empty( $format ) ? 'U' : $format;
$date = ( $time && 'U' === $format ) ? $time : ( $time ? gmdate( $format, $time ) : false );
return $date;
}
/**
* Return the date of the first publish activity.
*
* @param string $format (optional)
*
* @return mixed
* @since 2.0.0
*
*/
public static function first_publish_date( $format = 'U' ) {
$time = (int) get_option( 'gd_system_first_publish' );
$format = empty( $format ) ? 'U' : $format;
$date = ( $time && 'U' === $format ) ? $time : ( $time ? gmdate( $format, $time ) : false );
return $date;
}
/**
* Return the date of the last publish activity.
*
* @param string $format (optional)
*
* @return mixed
* @since 2.0.0
*
*/
public static function last_publish_date( $format = 'U' ) {
$time = (int) get_option( 'gd_system_last_publish' );
$format = empty( $format ) ? 'U' : $format;
$date = ( $time && 'U' === $format ) ? $time : ( $time ? gmdate( $format, $time ) : false );
return $date;
}
/**
* Return the last cache flush date.
*
* @param string $format (optional)
*
* @return mixed
* @since 2.0.0
*
*/
public static function last_cache_flush_date( $format = 'U' ) {
$time = (int) get_option( 'gd_system_last_cache_flush' );
$format = empty( $format ) ? 'U' : $format;
$date = ( $time && 'U' === $format ) ? $time : ( $time ? gmdate( $format, $time ) : false );
/**
* Filter the last cache flush date.
*
* @since 2.0.0
*
* @var mixed
*/
return apply_filters( 'wpaas_last_cache_flush_date', $date );
}
/**
* Check if this site has used WPEM (not opted-out).
*
* @return bool
* @since 2.0.0
*
*/
public static function has_used_wpem() {
$result = ( defined( 'GD_EASY_MODE' ) && GD_EASY_MODE && get_option( 'wpem_done' ) && ! get_option( 'wpem_opt_out' ) );
/**
* Filter if this site has used WPEM (not opted-out).
*
* @since 2.0.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_has_used_wpem', $result );
}
/**
* Check if this site used WPNUX starter template on-boarding.
*
* @return bool
* @since 3.11.0
*
*/
public static function has_used_wpnux() {
$result = ! empty( get_option( 'wpnux_imported' ) );
/**
* Filter if this site used WPNUX starter template on-boarding.
*
* @since 3.11.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_has_used_wpnux', $result );
}
/**
* Check if this site should use our simplified UX.
*
* @return bool
* @since 3.12.0
*
*/
public static function use_simple_ux() {
$result = defined( 'GD_SIMPLE_UX' ) ? GD_SIMPLE_UX : ( ! WP_DEBUG && 'go' === get_option( 'stylesheet' ) && self::has_used_wpnux() );
/**
* Filter if this site should use our simplified UX.
*
* @since 3.12.0
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_use_simple_ux', $result );
}
/**
* Check if a plugin is currently active.
*
* @param string $basename
*
* @return bool
* @since 3.17.0
*
*/
public static function is_plugin_active( $basename ) {
if ( ! function_exists( 'is_plugin_active' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}
return is_plugin_active( $basename );
}
/**
* Check if a plugin is currently activating.
*
* @param string $basename
*
* @return bool
* @since 3.17.0
*
*/
public static function is_plugin_activating( $basename ) {
return ( is_admin() && filter_input( INPUT_GET, 'plugin' ) === $basename && in_array( filter_input( INPUT_GET, 'action' ), [
'error_scrape',
'activate'
], true ) );
}
/**
* Check if this site has a particular plan.
*
* @param string $plan
*
* @return bool
* @since 3.11.2
*
*/
public static function has_plan( $plan ) {
$result = defined( 'GD_PLAN_NAME' ) ? ( GD_PLAN_NAME == $plan ) : false; // Loose comparison OK.
/**
* Filter if this site has a particular plan.
*
* @param string $plan
*
* @since 3.11.2
*
* @var bool
*/
return (bool) apply_filters( 'wpaas_has_plan', $result, $plan );
}
/**
* Return the reseller ID.
*
* @return int|false
* @since 2.0.0
*
*/
public static function reseller_id() {
return defined( 'GD_RESELLER' ) ? (int) GD_RESELLER : false;
}
/**
* Return the site domain.
*
* @return string
*/
public static function domain() {
return wp_parse_url( home_url(), PHP_URL_HOST );
}
/**
* Return an external URL useful for hosting account management.
*
* @return string
*/
public static function account_url( $path = 'overview' ) {
$domain = self::domain();
if ( self::is_mt() ) {
return in_array( $path, [
'overview',
'settings'
], true ) ? 'https://ac.mediatemple.net/services/wordpress/plugin-callback/index.mt' : "https://ac.mediatemple.net/services/wordpress/plugin-callback/index.mt?domain={$domain}&action={$path}";
}
// On AAB (MHP) sites the legacy hosting panel is gone, so these links must
// target the new Airo App Builder UI. The switch is the same per-site
// signal the admin dashboard uses (globalInfo.is_aab) — see is_aab().
//
// AAB deliberately does NOT fall through to the legacy route below: that
// panel is dead for these sites, so an unmapped $path yields '' and the
// caller drops the link (mirrors the front builder + the Panels plan).
// See the "Links back to GoDaddy" plan + Confluence link table.
if ( self::is_aab() ) {
return self::airo_app_url( $path );
}
return sprintf( 'https://%s/mwp/sitelookup/?domain=%s&path=%s', self::myh_host(), $domain, $path );
}
/**
* Whether this site runs on Airo App Builder (MHP) rather than the legacy
* hosting platform.
*
* This is the plugin-side source of the same signal the admin dashboard
* consumes as globalInfo.is_aab: the platform injects GD_SSO_API_URL into
* wp-config only on AAB/MHP sites, so its presence is the AAB marker. Legacy
* and mixed-version sites omit it and keep the legacy hosting links.
*
* @return bool
*/
public static function is_aab() {
return defined( 'GD_SSO_API_URL' ) && (bool) GD_SSO_API_URL;
}
/**
* Airo App Builder target for a wp-admin "back to hosting" link.
*
* This is the plugin-side "template": a single source of truth mapping each
* $path to an Airo App Builder route. The legacy panel is domain/accountUid
* centric; Airo is appId-centric, so routes are expressed as templates where
* `{appId}` is substituted from GD_ACCOUNT_UID (the hosting_apps.id nanoid).
*
* Every route below is a PLACEHOLDER: product / airo-app-builder must fill in
* each one (see the Confluence link table, one row per $path) before this is
* relied on in production. An empty route means "no Airo route yet" — the
* caller (account_url) returns it as-is on AAB sites, i.e. the link is
* dropped rather than pointing at the dead legacy panel.
*
* Airo App Builder is GoDaddy-brand only and requires GD_ACCOUNT_UID.
*
* @param string $path One of: overview, settings, changedomain, changephp.
*
* @return string Fully-qualified Airo URL, or '' when there is no route yet.
*/
public static function airo_app_url( $path = 'overview' ) {
if ( ! self::is_gd() || ! defined( 'GD_ACCOUNT_UID' ) || ! GD_ACCOUNT_UID ) {
return '';
}
// $path => Airo App Builder route template (canvas IDs from wordpressCanvasExperience.ts).
$route_map = [
'overview' => '/develop/wp/{appId}',
'settings' => '/develop/wp/{appId}?view=settings.project',
'changedomain' => '/develop/wp/{appId}?view=domain',
'changephp' => '/develop/wp/{appId}?view=settings.project',
];
if ( empty( $route_map[ $path ] ) ) {
return '';
}
$env = Plugin::get_env();
$prefix = ( 'prod' === $env ) ? '' : "{$env}-";
$route = str_replace( '{appId}', rawurlencode( (string) GD_ACCOUNT_UID ), $route_map[ $path ] );
return "https://airo-builder.{$prefix}godaddy.com{$route}";
}
/**
* Return the VIP.
*
* @return string|false
* @since 2.0.0
*
*/
public static function vip() {
return defined( 'GD_VIP' ) ? (string) GD_VIP : false;
}
/**
* Return the account ID.
*
* @return string
* @since 2.0.0
*
*/
public static function account_id() {
$account_id = self::is_wp_cli() ? basename( dirname( ABSPATH ) ) : ( ! empty( $_SERVER['REAL_USERNAME'] ) ? $_SERVER['REAL_USERNAME'] : false );
/**
* Filter the account ID.
*
* @since 2.0.0
*
* @var string
*/
return (string) apply_filters( 'wpaas_account_id', $account_id );
}
/**
* Return the ASAP key.
*
* @return string|false
* @since 2.0.0
*
*/
public static function asap_key() {
$asap_key = defined( 'GD_ASAP_KEY' ) ? (string) GD_ASAP_KEY : false;
/**
* Filter the ASAP key.
*
* @since 2.0.0
*
* @var string|false
*/
return apply_filters( 'wpaas_asap_key', $asap_key );
}
/**
* Return the XID.
*
* @return int|false
* @since 2.0.0
*
*/
public static function xid() {
if ( self::is_wpaas_v2() ) {
$xid = (int) getenv( 'XID' );
} elseif ( self::is_wp_cli() ) {
$xid = (int) substr( substr( self::account_id(), 4 ), 0, - 3 );
} elseif ( isset( $_SERVER['XID'] ) ) {
$xid = (int) $_SERVER['XID'];
} else {
$xid = 0;
}
$xid = ( $xid > 1000000 ) ? $xid : false;
/**
* Filter the XID.
*
* @since 2.0.0
*
* @var int|false
*/
return apply_filters( 'wpaas_xid', $xid );
}
/**
* Check if the current process is using WP-CLI.
*
* @return bool
* @since 2.0.0
*
*/
public static function is_wp_cli() {
return ( defined( 'WP_CLI' ) && WP_CLI );
}
/**
* Check if the current process is using WP-CLI.
*
* @return bool
* @since 4.75.0
*
*/
public static function is_wp_cron() {
return ( defined( 'DOING_CRON' ) && DOING_CRON );
}
/**
* Base WP-CLI command.
*
* @return string
*/
public static function cli_base_command() {
$commands = [
'gd' => 'godaddy',
'mt' => 'mt',
];
$command = self::use_brand_value( $commands, 'wpaas' );
/**
* Filter the base WP-CLI command.
*
* @since 2.0.0
*
* @var string
*/
return (string) apply_filters( 'wpaas_cli_base_command', $command );
}
/**
* Return a WP-CLI command.
*
* @param string $subcommand
* @param array $options (optional)
* @param bool $wp (optional)
*
* @return string
* @since 2.0.0
*
*/
public static function cli_command( $subcommand, array $options = [], $wp = true ) {
foreach ( $options as $key => &$value ) {
$value = is_bool( $value ) ? sprintf( '--%s', $key ) : sprintf( '--%s=%s', $key, is_int( $value ) ? $value : escapeshellarg( $value ) );
}
return trim(
sprintf(
'%s %s %s %s',
( $wp ) ? 'wp' : null,
escapeshellcmd( self::cli_base_command() ),
escapeshellcmd( $subcommand ),
implode( ' ', $options )
)
);
}
/**
* Return an asyncronous WP-CLI command.
*
* @param string $subcommand
* @param array $options (optional)
* @param bool $wp (optional)
*
* @return string
* @since 2.0.0
*
*/
public static function async_cli_command( $subcommand, array $options = [], $wp = true ) {
return self::cli_command( $subcommand, $options, $wp ) . ' > /dev/null 2>/dev/null &'; // Non-blocking
}
/**
* Set/update the value of a site transient using a persistent manner. Uses options API.
*
* You do not need to serialize values, if the value needs to be serialize, then
* it will be serialized before it is set.
*
* @param string $transient Transient name. Expected to not be SQL-escaped. Must be
* 40 characters or fewer in length.
* @param mixed $value Transient value. Expected to not be SQL-escaped.
* @param int $expiration Optional. Time until expiration in seconds. Default 0 (no expiration).
*
* @return bool False if value was not set and true if value was set.
* @since 2.0.2
*
* @see set_site_transient()
*
*/
public static function set_persistent_site_transient( $transient, $value, $expiration = 0 ) {
$transient_timeout = '_site_transient_timeout_' . $transient;
$option = '_site_transient_' . $transient;
if ( false === get_site_option( $option ) ) {
if ( $expiration ) {
add_site_option( $transient_timeout, time() + $expiration );
}
return add_site_option( $option, $value );
}
if ( $expiration ) {
update_site_option( $transient_timeout, time() + $expiration );
}
return update_site_option( $option, $value );
}
/**
* Transient function that skips object cache check and fallback to db instead.
*
* @param string $transient Transient name. Expected to not be SQL-escaped.
*
* @return bool|mixed
* @see get_site_transient()
*
* @since 2.0.2
*
*/
public static function get_persistent_site_transient( $transient ) {
$transient_option = '_site_transient_' . $transient;
$transient_timeout = '_site_transient_timeout_' . $transient;
$timeout = get_site_option( $transient_timeout );
if ( false !== $timeout && $timeout < time() ) {
self::delete_persistent_site_transient( $transient );
$value = false;
}
if ( ! isset( $value ) ) {
$value = get_site_option( $transient_option );
}
return $value;
}
/**
* Remove the persistent transient value.
*
* @param string $transient name.
*
* @return void
*/
public static function delete_persistent_site_transient( $transient ) {
$transient_option = '_site_transient_' . $transient;
$transient_timeout = '_site_transient_timeout_' . $transient;
delete_site_option( $transient_option );
delete_site_option( $transient_timeout );
}
/**
* Get the WooCommerce extension basename from its slug.
*
* Sometimes extensions have a non-standard basename so we need this
* helper method to ensure those are dealt with appropriately.
*
* @param string $slug
*
* @return string
*/
public static function get_woo_extension_basename( $slug ) {
$slug_to_basename = [
'woocommerce-product-enquiry-form' => 'product-enquiry-form',
];
$filename = isset( $slug_to_basename[ $slug ] ) ? $slug_to_basename[ $slug ] : $slug;
return "{$slug}/{$filename}.php";
}
/**
* Determine which builder platform was used to create the current page.
*
* Possible values:
*
* -- beaver-builder
* -- brizy
* -- divy
* -- elementor
* -- oxygen
* -- themify-builder
* -- visual-composer
* -- wp-block-editor (Gutenberg)
* -- wp-classic-editor
*
* Will return NULL when:
*
* -- The builder plugin used to construct the page is inactive.
* -- The WP Block Editor is being used but the page contains no blocks.
* -- A page builder platform can't be detected.
*
* @param WP_Post $post
*
* @return string|null
*/
public static function get_page_builder( $post ) {
if ( ! is_a( $post, 'WP_Post' ) ) {
global $post;
}
if ( ! isset( $post->post_content ) ) {
return;
}
switch ( true ) {
case ( class_exists( 'FLBuilderLoader' ) && 1 === (int) get_post_meta( $post->ID, '_fl_builder_enabled', true ) ):
$builder = 'beaver-builder';
break;
case ( defined( 'BRIZY_VERSION' ) && get_post_meta( $post->ID, 'brizy_post_uid', true ) ):
$builder = 'brizy';
break;
case ( defined( 'ET_BUILDER_VERSION' ) && 'on' === get_post_meta( $post->ID, '_et_pb_use_builder', true ) ):
$builder = 'divi';
break;
case ( defined( 'ELEMENTOR_VERSION' ) && 'builder' === get_post_meta( $post->ID, '_elementor_edit_mode', true ) ):
$builder = 'elementor';
break;
case ( defined( 'CT_VERSION' ) && get_post_meta( $post->ID, 'ct_builder_shortcodes', true ) ):
$builder = 'oxygen';
break;
case ( defined( 'THEMIFY_VERSION' ) && get_post_meta( $post->ID, '_themify_builder_settings_json', true ) ):
$builder = 'themify-builder';
break;
case ( defined( 'VCV_VERSION' ) && 'vc' === get_post_meta( $post->ID, '_vcv-page-template-type', true ) ):
$builder = 'visual-composer';
break;
case class_exists( 'Classic_Editor' ):
// Normalize old options: https://plugins.trac.wordpress.org/browser/classic-editor/trunk/classic-editor.php?rev=2084072#L254
$default = in_array( get_option( 'classic-editor-replace' ), [
'block',
'no-replace'
], true ) ? 'block-editor' : 'classic-editor';
$builder = ( 'allow' === get_option( 'classic-editor-allow-users' ) ) ? get_post_meta( $post->ID, 'classic-editor-remember', true ) : $default;
$builder = in_array( $builder, [ 'block-editor', 'classic-editor' ], true ) ? $builder : $default;
$builder = 'wp-' . $builder;
break;
default:
$builder = ( false !== strpos( $post->post_content, '<!-- wp:' ) ) ? 'wp-block-editor' : null;
}
return $builder;
}
/**
* Forcefully unregister an action or filter by its hooked class name and method.
*
* For those times when a plugin has registered a hook to a class method
* without also storing the instance of that class object in a global variable.
*
* @param string $hook_name
* @param string $class_name
* @param string|array $method_name
*
* @return void
*/
public static function force_remove_hook( $hook_name, $class_name, $method_name ) {
global $wp_filter;
if ( empty( $wp_filter[ $hook_name ] ) ) {
return;
}
$wp_hook = (array) $wp_filter[ $hook_name ];
if ( empty( $wp_hook['callbacks'] ) ) {
return;
}
foreach ( $wp_hook['callbacks'] as $priority => $filters ) {
foreach ( $filters as $unique_id => $filter ) {
if ( is_object( $filter['function'] ) || empty( $filter['function'][0] ) || empty( $filter['function'][1] ) ) {
continue;
}
if ( ! is_object( $filter['function'][0] ) || $class_name !== get_class( $filter['function'][0] ) || ! in_array( $filter['function'][1], (array) $method_name, true ) ) {
continue;
}
if ( is_a( $wp_filter[ $hook_name ], 'WP_Hook' ) ) {
unset( $wp_filter[ $hook_name ]->callbacks[ $priority ][ $unique_id ] );
} else {
unset( $wp_filter[ $hook_name ][ $priority ][ $unique_id ] );
}
}
}
}
/**
* Return the state of RUM.
*
* @return boolean
*/
public static function is_rum_enabled() {
return (bool) apply_filters( 'wpaas_rum_enabled', defined( 'GD_RUM_ENABLED' ) ? GD_RUM_ENABLED : false );
}
/**
* Return if GD_PLAN_NAME contains WordPress Design Service plans.
*
* @return boolean
*/
public static function is_wds() {
// Short circuit. WDS Plugin is active.
if ( self::is_plugin_active( 'pws-core/core.php' ) ) {
return true;
}
// Plan undefined and plugin not present. No WDS.
if ( ! defined( 'GD_PLAN_NAME' ) ) {
return false;
}
// Plan is defined. Check if matching these strings.
$needles = array( 'Design Service', 'WDS' );
foreach ( $needles as $needle ) {
if ( false !== stripos( GD_PLAN_NAME, $needle ) ) {
// Short circuit on true to prevent value switching after match.
return true;
};
}
// We only reach if no matching strings. No WDS.
return false;
}
/**
* Return if this site is on a "unified hosting" plan targeted by the
* GD_UNIFIED_PUBLISHED publish mechanism.
*
* Definedness of the constant is the signal, not its value: the platform writes
* it for exactly the compositions whose publish state it owns, so eligibility and
* the published read cannot disagree. The wpaas_is_unified_plan filter is the
* override/test seam.
*
* @return bool
*/
public static function is_unified_plan() {
$result = defined( 'GD_UNIFIED_PUBLISHED' );
/**
* Filter whether this site is on a unified hosting plan.
*
* @param bool $result
*/
return (bool) apply_filters( 'wpaas_is_unified_plan', $result );
}
/**
* Read the GD_UNIFIED_PUBLISHED constant defensively.
*
* Accepts true/'1'/1/'true' as published; anything falsy is unpublished.
* Undefined is treated as unpublished (no fallback to gdl_site_published).
*
* @return bool
*/
public static function is_unified_published() {
if ( ! defined( 'GD_UNIFIED_PUBLISHED' ) ) {
return false;
}
return filter_var( GD_UNIFIED_PUBLISHED, FILTER_VALIDATE_BOOLEAN );
}
/**
* Get the first user with admin priviledge.
*
* @return \WP_User|false
*/
public static function get_first_admin_user() {
$cached_user = get_transient( 'gd_system_first_admin_user' );
if ( $cached_user && $cached_user instanceof \WP_User && in_array( 'administrator', $cached_user->roles, true ) ) {
return $cached_user;
}
$users = get_users(
[
'role' => 'administrator',
'number' => 1,
'orderby' => 'ID',
'order' => 'ASC'
]
);
$user = ( isset( $users[0] ) && $users[0] instanceof \WP_User ) ? $users[0] : false;
if ( $user ) {
set_transient( 'gd_system_first_admin_user', $user, 600 );
}
return $user;
}
/**
* Returns the base WPNUX url.
*/
public static function get_wpnux_url( $path = '' ) {
$env = Plugin::get_env();
$prefix = ( 'prod' === $env ) ? '' : "{$env}-";
$path = ltrim( $path, '/' );
return "https://wpnux.{$prefix}godaddy.com/$path";
}
/**
* Check if a option is autoloated and if it is return the value.
*
* @return boolean
*/
public static function is_option_autoloaded( $option_name, $option_value = null, $strict = false ) {
$alloptions = wp_load_alloptions();
if ( ! isset( $alloptions[ $option_name ] ) ) {
return false;
}
if ( is_null( $option_value ) ) {
return $alloptions[ $option_name ];
}
return $strict ? get_option( $option_name ) === $option_value : get_option( $option_name ) == $option_value;
}
/**
* Get V2 APP ID
*
* @return mixed|string|null
*
* @since 4.148.0
*/
public static function get_v2_app_id() {
$env = getenv( 'WPAAS_V2_SITE_ID' );
if ( empty( $env ) ) {
return null;
}
$parts = explode( ':', $env );
return $parts[1];
}
/**
* Sing http request body and return it along with sign headers
*
* @param string $request_body
*
* @return array
*/
public static function sign_http_request( $request_body ) {
// Gather signature params
$nonce = sprintf( '%s_%s', rand(), time() );
$site_token = defined( 'GD_SITE_TOKEN' ) ? GD_SITE_TOKEN : null;
$site_account_id = defined( 'GD_ACCOUNT_UID' ) ? GD_ACCOUNT_UID : null;
$domain = defined( 'GD_TEMP_DOMAIN' ) ? GD_TEMP_DOMAIN : null;
$sign_request_key = 'wp1_request';
if ( empty( $site_token ) || empty( $site_account_id ) || empty( $domain ) ) {
return array();
}
// Hash signature params
$body_payload_hash = hash( 'sha256', $request_body );
$token_and_nonce_hash = hash_hmac( 'sha256', $site_token, $nonce );
$sign_key_data = hash_hmac( 'sha256', $token_and_nonce_hash, $site_account_id );
$signature_key = hash_hmac( 'sha256', $sign_key_data, $sign_request_key );
// Create signature
$signature_value = sprintf( '%s%s%s', $nonce, $domain, $body_payload_hash );
$signature = hash_hmac( 'sha256', $signature_value, $signature_key );
if ( empty( $body_payload_hash ) || empty( $token_and_nonce_hash ) || empty( $sign_key_data ) || empty( $signature_key ) || empty( $signature ) ) {
return array();
}
return array(
'x-wp-nonce' => $nonce,
'x-wp-origin' => $domain,
'x-wp-signature' => $signature,
'x-wp-bodyhash' => $body_payload_hash,
'x-wp-token' => substr( $site_token, - 5 )
);
}
/** @var array $subscription_plans_per_env */
private static $subscription_plans_per_env = array(
'local' => 'https://d3rkwznpdz0oz2.cloudfront.net/wp-subscription-plans.json',
'dev' => 'https://d3rkwznpdz0oz2.cloudfront.net/wp-subscription-plans.json',
'test' => 'https://d2mt2uivr8ua2g.cloudfront.net/wp-subscription-plans.json',
'myh.test' => 'https://d2mt2uivr8ua2g.cloudfront.net/wp-subscription-plans.json',
'prod' => 'https://ds9ywulh7jrls.cloudfront.net/wp-subscription-plans.json',
);
/**
* How long a failed subscription-plans fetch is remembered, in seconds.
*
* Short on purpose. The success TTL is a week, which is right for a document that
* rarely changes — but caching a *failure* for a week means one bad minute costs
* seven days of wrong plan types.
*
* A method rather than a constant: constants in traits require PHP 8.2, and this
* trait is loaded on every supported PHP version.
*
* @since 4.302.0
*
* @return int
*/
private static function subscription_plans_error_ttl() {
return 300;
}
/**
* The subscription-plans document URL for this environment, if there is one.
*
* get_env() returns SERVER_ENV verbatim and is filterable, so it can hold a value
* that is not one of the five keys below — in which case there is no document to
* fetch and the caller must degrade rather than index into the array.
*
* @since 4.302.0
*
* @return string
*/
private static function subscription_plans_url() {
$env = self::get_env();
return isset( self::$subscription_plans_per_env[ $env ] ) ? self::$subscription_plans_per_env[ $env ] : '';
}
/**
* Returns all plans translated and mapped to: basic,business,ultimate.
*
* Returns an empty array when the document cannot be fetched or is not valid JSON.
* Callers get "this plan matched nothing", which is the same answer they got before
* for an unrecognised plan name.
*
* A failure is cached as an empty JSON document for a few minutes. Smart_Update
* calls this twice per request for a plan that is not `ultimate`, so a sentinel the
* read branch did not recognise would mean two blocking requests per request for
* as long as the CDN was unreachable.
*
* @return array
*/
static function get_plans_transaltions() {
$subscription_plans = get_transient( 'wp_subscription_plans' );
// Any cached string answers from cache, including the '[]' a failure stores: a
// cached failure that read as a miss would re-enter the HTTP path on every
// request, which is the outage this caching exists to survive. Anything that is
// not a string — including the false of a cache miss — falls through and refetches.
if ( is_string( $subscription_plans ) ) {
$decoded = json_decode( $subscription_plans, true );
if ( is_array( $decoded ) ) {
return $decoded;
}
// Older versions cached the response body without validating it, so an
// undecodable value can already be sitting here under a week-long TTL.
// Replace it with the failure sentinel so the next refetch is minutes away.
set_transient( 'wp_subscription_plans', '[]', self::subscription_plans_error_ttl() );
return array();
}
$aws_s3_url = self::subscription_plans_url();
if ( ! $aws_s3_url ) {
// No document for this environment. Don't cache: the environment can change
// (SERVER_ENV is set per-process, and wpaas_get_env is filterable) without
// the plans document itself having changed.
return array();
}
$response = Plugin::remote_get( $aws_s3_url );
if ( is_wp_error( $response ) || 200 !== (int) wp_remote_retrieve_response_code( $response ) ) {
// A WP_Error is not an array, and reading ['body'] off one is a fatal —
// this is the failure that took whole sites down when an environment had no
// egress to the CDN.
set_transient( 'wp_subscription_plans', '[]', self::subscription_plans_error_ttl() );
return array();
}
$body = wp_remote_retrieve_body( $response );
$decoded = json_decode( $body, true );
if ( ! is_array( $decoded ) ) {
// Remember the failure briefly rather than the body: a truncated or
// HTML-error document would otherwise answer every lookup for a week.
set_transient( 'wp_subscription_plans', '[]', self::subscription_plans_error_ttl() );
return array();
}
set_transient( 'wp_subscription_plans', $body, 7 * 24 * 60 * 60 );
return $decoded;
}
/**
* Checks if given plan name can be matched, and return: basic|business|ultimate
*
* @param $plan
*
* @return string|null
*/
static function get_plan_type( $plan ) {
$subscription_plans = self::get_plans_transaltions();
if ( ! is_string( $plan ) && ! is_int( $plan ) ) {
return null;
}
if ( empty( $subscription_plans[ $plan ] ) ) {
return null;
}
return $subscription_plans[ $plan ];
}
/**
* Return the URL for adding more storage.
*
* @return string
*/
public static function get_myh_add_storage_url(): string {
$site_account_id = defined( 'GD_ACCOUNT_UID' ) ? GD_ACCOUNT_UID : null;
if ( empty( $site_account_id ) || self::is_mt() ) {
return self::account_url( 'settings' );
}
return sprintf(
'https://%s/mwp/site/%s/settings?modal=ADD_MORE_STORAGE',
self::myh_host(),
$site_account_id
);
}
/**
* Normalize an environment name to the short form GoDaddy hostnames use.
*
* `SERVER_ENV` is set by whichever platform runs the container and they do not
* agree: legacy Managed WordPress uses `dev`/`test`/`prod` but also `myh.test`,
* while the hosting control plane uses its AWS environment names
* (`development`, `production`, `dev-private`, `local`) — none of which appear
* in a GoDaddy hostname.
*
* Unknown values pass through rather than defaulting to `prod`: the host they
* build is then visibly wrong and diagnosable, whereas silently reading an
* unrecognized environment as production is the one outcome no caller can
* afford.
*
* @since 4.302.0
*
* @param string $env
*
* @return string
*/
public static function short_env( $env ) {
$map = [
'development' => 'dev',
'dev-private' => 'dev',
'local' => 'dev',
'production' => 'prod',
'myh.test' => 'test',
];
$env = strtolower( trim( (string) $env ) );
return isset( $map[ $env ] ) ? $map[ $env ] : $env;
}
/**
* The customer-facing hosting dashboard host for this environment.
*
* Was derived independently in account_url(), get_myh_add_storage_url() and
* Site_Optimizer — the third of which only ever knew about prod and test, so a dev
* site linked customers at the test dashboard. One derivation, and not a filterable
* one: every caller renders a GoDaddy-branded link into wp-admin.
*
* The environment is normalized first: `SERVER_ENV` carries values that are not
* hostname components, and wp_public_api_url() and the WP mirror URLs already
* fold `myh.test` to `test` for exactly this reason.
*
* @since 4.302.0
*
* @return string
*/
public static function myh_host() {
$env = self::short_env( Plugin::get_env() );
$prefix = ( 'prod' === $env ) ? '' : "{$env}-";
$tld = self::is_gd() ? 'godaddy.com' : 'secureserver.net';
return "host.{$prefix}{$tld}";
}
/**
* Check if the site is on MWCS .
*
* @return bool
*/
public static function is_mwcs(): bool {
$gd_plan_name = defined( 'GD_PLAN_NAME' ) ? GD_PLAN_NAME : null;
$mwcs_plans = array(
'essentials',
'essentialsCA',
'essentials_GDGCPP',
'flex',
'flexCA',
'flex_GDGCPP',
'expand',
'expandCA',
'expand_GDGCPP',
);
if ( empty( $gd_plan_name ) ) {
return false;
}
return in_array( $gd_plan_name, $mwcs_plans, true );
}
}
Zerion Mini Shell 1.0
Custom Staffing Solutions | Beyond A Resume
Skip to content
Distinguish Your Business From The Rest With The People That Make Up Your Team
We go Beyond a Resume to find high value, committed people
ready, willing, and able to add true value toward your organization's mission.
The right people make or break your business
We focus on resolving two types of challenges surrounding staffing and recruiting at Beyond a Resume: The first challenge comes when a business continues to grow, but does not have the full-time, internal, talent acquisition resources to hire the right people or talent necessary to keep up with their rate of progression as a company.
The second is a business that has a dedicated internal Human Resources Team, but requires outsourced assistance when the volume of people and talent needed exceeds short term internal capacity, OR the position(s) they seek to fill demand a specific skill set that is difficult to find, requiring added bandwidth.
In nearly any line of business, growth is a challenge in and of itself. Yet, the real problems arise in managing growth to ensure your progress remains profitable, sustainable, and repeatable. The biggest factor in this equation is usually found in your people. When you have the right people, success is unlimited. On the other hand, when you don’t have the right people in place or are having trouble finding enough of the right people, failure or stagnation is imminent.
The frustration that comes with the process of “hiring” can bring you to new levels of stress as the time cost involved eats away at your production elsewhere. If you have experienced this in the past, or are currently struggling with this issue, you’re certainly not alone. You may simply need the right partner to take the worst parts of this process off your plate so you can concentrate on your responsibilities, while we work diligently to reduce the noise and deliver only the ideal candidates worth your time and attention.
People can make or break your business and we go Beyond a Resume to find high value, committed people ready, willing, and able to add true value.
Primary Industry Experience
Healthcare and Home Healthcare
Talent Acquisition Solutions
Statement of Work Projects
Scroll To Top