Constants::get_constant( string $name )
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.
Description #Description
Parameters #Parameters
- $name
-
(Required) The name of the constant.
Return #Return
(mixed) null if the constant does not exist or the value of the constant.
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: jetpack_constant_default_value |
Filters the value of the constant. |
Used By #Used By
Used By | Description |
---|---|
vendor/automattic/jetpack-constants/src/class-constants.php: Constants::is_true() |
Checks if a “constant” has been set in constants Manager and has the value of true |
includes/admin/class-wc-admin-dashboard-setup.php: WC_Admin_Dashboard_Setup::render() |
Render meta box output. |
includes/theme-support/class-wc-twenty-twenty-one.php: WC_Twenty_Twenty_One::enqueue_styles() |
Enqueue CSS for this theme. |
includes/theme-support/class-wc-twenty-twenty-one.php: WC_Twenty_Twenty_One::enqueue_admin_styles() |
Enqueue the wp-admin CSS overrides for this theme. |
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/plugin-updates/class-wc-plugins-screen-updates.php: WC_Plugins_Screen_Updates::in_plugin_update_message() |
Show plugin changes on the plugins screen. Code adapted from W3 Total Cache. |
includes/admin/plugin-updates/class-wc-plugins-screen-updates.php: WC_Plugins_Screen_Updates::parse_update_notice() |
Parse update notice from readme file. |
includes/admin/plugin-updates/class-wc-updates-screen-updates.php: WC_Updates_Screen_Updates::update_screen_modal() |
Show a warning message on the upgrades screen if the user tries to upgrade and has untested plugins. |
includes/admin/class-wc-admin-addons.php: WC_Admin_Addons::get_in_app_purchase_url_params() |
Returns in-app-purchase URL params. |
includes/admin/class-wc-admin-exporters.php: WC_Admin_Exporters::admin_scripts() |
Enqueue scripts. |
includes/admin/class-wc-admin-assets.php: WC_Admin_Assets::admin_styles() |
Enqueue styles. |
includes/admin/class-wc-admin-assets.php: WC_Admin_Assets::admin_scripts() |
Enqueue scripts. |
includes/admin/helper/class-wc-helper.php: WC_Helper::_woo_core_update_available() |
Whether WooCommerce has an update available. |
includes/admin/helper/class-wc-helper.php: WC_Helper::admin_enqueue_scripts() |
Enqueue admin scripts and styles. |
includes/admin/class-wc-admin-status.php: WC_Admin_Status::output_plugins_info() |
Prints the information about plugins for the system status report. |
includes/admin/class-wc-admin-importers.php: WC_Admin_Importers::admin_scripts() |
Register importer scripts. |
includes/admin/class-wc-admin-status.php: WC_Admin_Status::status_logs() |
Show the logs page. |
includes/admin/class-wc-admin-notices.php: WC_Admin_Notices::add_notices() |
Add notices + styles if needed. |
includes/class-wc-logger.php: WC_Logger::__construct() |
Constructor for the logger. |
includes/wc-core-functions.php: wc_prevent_dangerous_auto_updates() |
Prevent auto-updating the WooCommerce plugin on major releases if there are untested extensions active. |
includes/wc-core-functions.php: wc_register_default_log_handler() |
Registers the default log handler. |
includes/wc-core-functions.php: get_woocommerce_api_url() |
Get the URL to the WooCommerce REST API. |
includes/wc-core-functions.php: wc_get_template() |
Get other templates (e.g. product attributes) passing attributes and including the file. |
includes/wc-core-functions.php: wc_get_template_part() |
Get template part (for templates like the shop-loop). |
includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php: WC_Gateway_Paypal_PDT_Handler::validate_transaction() |
Validate a PDT transaction to ensure its authentic. |
includes/gateways/paypal/class-wc-gateway-paypal.php: WC_Gateway_Paypal::admin_scripts() |
Load admin scripts. |
includes/class-wc-frontend-scripts.php: WC_Frontend_Scripts::get_styles() |
Get styles for the frontend. |
includes/class-wc-frontend-scripts.php: WC_Frontend_Scripts::register_scripts() |
Register all WC scripts. |
includes/class-wc-frontend-scripts.php: WC_Frontend_Scripts::register_styles() |
Register all WC styles. |
includes/class-wc-ajax.php: WC_AJAX::link_all_variations() |
Link all variations via ajax function. |
includes/wc-template-functions.php: wc_generator_tag() |
Output generator tag to aid debugging. |
includes/theme-support/class-wc-twenty-twenty.php: WC_Twenty_Twenty::enqueue_styles() |
Enqueue CSS for this theme. |
includes/theme-support/class-wc-twenty-nineteen.php: WC_Twenty_Nineteen::enqueue_styles() |
Enqueue CSS for this theme. |
includes/theme-support/class-wc-twenty-seventeen.php: WC_Twenty_Seventeen::enqueue_styles() |
Enqueue CSS for this theme. |
includes/data-stores/class-wc-product-data-store-cpt.php: WC_Product_Data_Store_CPT::update_version_and_type() |
Make sure we store the product type and version (to track data changes). |
includes/data-stores/abstract-wc-order-data-store-cpt.php: Abstract_WC_Order_Data_Store_CPT::create() |
Method to create a new order in the database. |
includes/data-stores/abstract-wc-order-data-store-cpt.php: Abstract_WC_Order_Data_Store_CPT::update() |
Method to update an order in the database. |
includes/data-stores/class-wc-product-variation-data-store-cpt.php: WC_Product_Variation_Data_Store_CPT::update_version_and_type() |
Make sure we store the product version (to track data changes). |
includes/tracks/class-wc-tracks-client.php: WC_Tracks_Client::get_identity() |
Get a user’s identity to send to Tracks. If Jetpack exists, default to its implementation. |
includes/widgets/class-wc-widget-price-filter.php: WC_Widget_Price_Filter::__construct() |
Constructor. |
includes/abstracts/abstract-wc-deprecated-hooks.php: WC_Deprecated_Hooks::get_deprecated_version() |
Get deprecated version. |
includes/class-wc-tracker.php: WC_Tracker::get_tracking_data() |
Get all the tracking data. |
includes/class-wc-webhook.php: WC_Webhook::deliver_ping() |
Send a test ping to the delivery URL, sent when the webhook is first created. |
includes/class-wc-webhook.php: WC_Webhook::deliver() |
Deliver the webhook payload using wp_safe_remote_request(). |