defines.php
Global constants.
Table of Contents
Constants
- FONTAWESOME_DIR_PATH = \plugin_dir_path(__FILE__)
- Active Font Awesome plugin installation directory path.
- FONTAWESOME_DIR_URL = \plugin_dir_url(__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
FONTAWESOME_DIR_URL
public
mixed
FONTAWESOME_DIR_URL
= \plugin_dir_url(__FILE__)