JPKComSimpleLang
Table of Contents
Constants
- JPKCOM_SIMPLELANG_BASENAME = \plugin_basename(__FILE__)
- JPKCOM_SIMPLELANG_PLUGIN_PATH = \plugin_dir_path(__FILE__)
- JPKCOM_SIMPLELANG_PLUGIN_URL = \plugin_dir_url(__FILE__)
- JPKCOM_SIMPLELANG_VERSION = '1.1.1'
Functions
- jpkcom_simplelang_textdomain() : void
- Load plugin text domain for translations
- jpkcom_simplelang_locate_file() : string|null
- Locate file with override support
Constants
JPKCOM_SIMPLELANG_BASENAME
public
mixed
JPKCOM_SIMPLELANG_BASENAME
= \plugin_basename(__FILE__)
JPKCOM_SIMPLELANG_PLUGIN_PATH
public
mixed
JPKCOM_SIMPLELANG_PLUGIN_PATH
= \plugin_dir_path(__FILE__)
JPKCOM_SIMPLELANG_PLUGIN_URL
public
mixed
JPKCOM_SIMPLELANG_PLUGIN_URL
= \plugin_dir_url(__FILE__)
JPKCOM_SIMPLELANG_VERSION
public
mixed
JPKCOM_SIMPLELANG_VERSION
= '1.1.1'
Functions
jpkcom_simplelang_textdomain()
Load plugin text domain for translations
jpkcom_simplelang_textdomain() : void
Loads translation files from the /languages directory.
Tags
jpkcom_simplelang_locate_file()
Locate file with override support
jpkcom_simplelang_locate_file(string $filename) : string|null
Searches for a file in multiple locations with priority:
- Child theme
- Parent theme
- MU plugin overrides
- Plugin includes directory
Parameters
- $filename : string
-
The filename to locate (without path).
Tags
Return values
string|null —Full path to the file if found, null otherwise.