JPKCom Simple Lang

jpkcom-simple-lang.php

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__)

Functions

jpkcom_simplelang_textdomain()

Load plugin text domain for translations

jpkcom_simplelang_textdomain() : void

Loads translation files from the /languages directory.

Tags
since
1.0.0

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:

  1. Child theme
  2. Parent theme
  3. MU plugin overrides
  4. Plugin includes directory
Parameters
$filename : string

The filename to locate (without path).

Tags
since
1.0.0
Return values
string|null

Full path to the file if found, null otherwise.


        
On this page

Search results