Documentation

Documentation

Table of Contents

Packages

Application

Namespaces

FortAwesome

Constants

FONTAWESOME_DIR_PATH  = \plugin_dir_path(__FILE__)
Active Font Awesome plugin installation directory path.
FONTAWESOME_DIR_URL  = \plugin_dir_url(__FILE__)
FONTAWESOME_MIN_PHP_VERSION  = '5.6'
Minimum PHP VERSION required
FONTAWESOME_PLUGIN_FILE  = 'font-awesome/index.php'
Name of this plugin's entrypoint file.

Constants

FONTAWESOME_DIR_PATH

Active Font Awesome plugin installation directory path.

public mixed FONTAWESOME_DIR_PATH = \plugin_dir_path(__FILE__)

The result of plugin_dir_path() on the defines.php file for the actively executing installation of the Font Awesome plugin.

For example, if the example plugin under integrations/plugins/plugin-sigma in this repo were installed, activated, and its copy of the Font Awesome plugin were the one selected for execution, then the value of this constant would be something like this: /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/

However, suppose that a second copy of the Font Awesome plugin were installed from the WordPress plugins directory, and that copy had a later semantic version than the one bundled by plugin-sigma. In that case, the value of this constant would look more like this: /var/www/html/wp-content/plugins/font-awesome/

Tags
since
4.0.0

FONTAWESOME_DIR_URL

public mixed FONTAWESOME_DIR_URL = \plugin_dir_url(__FILE__)

FONTAWESOME_MIN_PHP_VERSION

Minimum PHP VERSION required

public mixed FONTAWESOME_MIN_PHP_VERSION = '5.6'
Tags
since
4.0.0

FONTAWESOME_PLUGIN_FILE

Name of this plugin's entrypoint file.

public mixed FONTAWESOME_PLUGIN_FILE = 'font-awesome/index.php'

Relative to the WordPress plugins directory, as would be used for $plugin in the activate_{$plugin} action hook.

Tags
since
4.0.0

Search results