Constants::is_true( string $name )
Checks if a “constant” has been set in constants Manager and has the value of true
Description #Description
Parameters #Parameters
- $name
-
(Required) The name of the constant.
Return #Return
(bool)
Source #Source
File: vendor/automattic/jetpack-constants/src/class-constants.php
Related #Related
Uses #Uses
Uses | Description |
---|---|
vendor/automattic/jetpack-constants/src/class-constants.php: Constants::is_defined() |
Checks if a “constant” has been set in constants Manager, and if not, checks if the constant was defined with define( ‘name’, ‘value ). |
vendor/automattic/jetpack-constants/src/class-constants.php: Constants::get_constant() |
Attempts to retrieve the “constant” from constants Manager, and if it hasn’t been set, then attempts to get the constant with the constant() function. If that also hasn’t been set, attempts to get a value from filters. |
Used By #Used By
Used By | Description |
---|---|
includes/wc-core-functions.php: wc_asort_by_locale() |
Sort array according to current locale rules and maintaining index association. |
includes/admin/notes/class-wc-notes-run-db-update.php: WC_Notes_Run_Db_Update::update_in_progress_notice() |
Update the existing note with $note_id with information about the db upgrade being in progress. |
includes/admin/class-wc-admin-dashboard.php: WC_Admin_Dashboard::network_orders() |
Network orders widget. |
includes/admin/class-wc-admin-dashboard.php: WC_Admin_Dashboard::status_widget() |
Show status widget. |
includes/admin/class-wc-admin-meta-boxes.php: WC_Admin_Meta_Boxes::save_meta_boxes() |
Check if we’re saving, the trigger an action based on the post type. |
includes/admin/class-wc-admin-exporters.php: WC_Admin_Exporters::admin_scripts() |
Enqueue scripts. |
includes/admin/class-wc-admin-settings.php: WC_Admin_Settings::output() |
Settings page. |
includes/admin/class-wc-admin-post-types.php: WC_Admin_Post_Types::bulk_and_quick_edit_save_post() |
Quick and bulk edit saving. |
includes/admin/class-wc-admin-assets.php: WC_Admin_Assets::admin_scripts() |
Enqueue scripts. |
includes/admin/helper/class-wc-helper.php: WC_Helper::log() |
Log a helper event. |
includes/admin/class-wc-admin-importers.php: WC_Admin_Importers::admin_scripts() |
Register importer scripts. |
includes/wc-core-functions.php: wc_transaction_query() |
Run a MySQL transaction query, if supported. |
includes/wc-core-functions.php: wc_setcookie() |
Set a cookie – wrapper for setcookie using WP constants. |
includes/cli/class-wc-cli-rest-command.php: WC_CLI_REST_Command::do_request() |
Do a REST Request |
includes/wccom-site/class-wc-wccom-site-installer-requirements-check.php: WC_WCCOM_Site_Installer_Requirements_Check::met_wp_cron_requirement() |
Validates if WP CRON is enabled. |
includes/libraries/class-wc-eval-math.php: WC_Eval_Math::trigger() |
Trigger an error, but nicely, if need be. |
includes/gateways/paypal/class-wc-gateway-paypal.php: WC_Gateway_Paypal::admin_scripts() |
Load admin scripts. |
includes/gateways/cod/class-wc-gateway-cod.php: WC_Gateway_COD::is_accessing_settings() |
Checks to see whether or not the admin settings are being accessed by the current request. |
includes/class-wc-frontend-scripts.php: WC_Frontend_Scripts::get_script_data() |
Return data for script handles. |
includes/class-wc-frontend-scripts.php: WC_Frontend_Scripts::register_scripts() |
Register all WC scripts. |
includes/class-wc-ajax.php: WC_AJAX::wc_ajax_headers() |
Send headers for WC Ajax Requests. |
includes/class-wc-emails.php: WC_Emails::send_transactional_email() |
Init the mailer instance and call the notifications for the current filter. |
includes/tracks/class-wc-tracks-event.php: WC_Tracks_Event::record() |
Record Tracks event |
includes/tracks/class-wc-tracks-client.php: WC_Tracks_Client::maybe_set_identity_cookie() |
Check if identiy cookie is set, if not set it. |
includes/wc-product-functions.php: wc_update_product_lookup_tables() |
Populate lookup table data for products. |
includes/widgets/class-wc-widget-price-filter.php: WC_Widget_Price_Filter::__construct() |
Constructor. |
includes/class-wc-background-emailer.php: WC_Background_Emailer::task() |
Task |
includes/abstracts/abstract-wc-payment-gateway.php: WC_Payment_Gateway::tokenization_script() |
Enqueues our tokenization script to handle some of the new form options. |
includes/class-wc-tracker.php: WC_Tracker::send_tracking_data() |
Decide whether to send tracking data or not. |
includes/class-wc-webhook.php: WC_Webhook::log_delivery() |
Log the delivery request/response. |