plugin.php

Table of Contents

mpapp()  : Plugin
mpa_assets()  : Assets
mpa_path_to()  : string
mpa_url_to()  : string
mpa_languages_dir()  : string
mpa_uploads_dir()  : string
mpa_version()  : string
mpa_get_plugin_data()  : string
mpa_name()  : string
mpa_shortcodes()  : ShortcodesRegistry
mpa_plugin_uri()  : string
mpa_plugin_author()  : string
mpa_is_hotel_booking_active()  : bool

Functions

mpapp()

mpapp() : Plugin
Tags
since
1.0

mpa_assets()

mpa_assets() : Assets
Tags
since
1.0

mpa_path_to()

mpa_path_to(string $file[, string $pluginDir = MotoPressAppointmentPLUGIN_DIR ]) : string
Parameters
$file : string

Relative path to the plugin file.

$pluginDir : string = MotoPressAppointmentPLUGIN_DIR

Optional. Appointment Booking by default.

Tags
since
1.0
since
1.2.1

added the pluginDir argument.

mpa_url_to()

mpa_url_to(string $file[, string $pluginUrl = MotoPressAppointmentPLUGIN_URL ]) : string
Parameters
$file : string

Relative path to the plugin file.

$pluginUrl : string = MotoPressAppointmentPLUGIN_URL

Optional. Appointment Booking by default.

Tags
since
1.0
since
1.2.1

added the pluginUrl argument.

mpa_languages_dir()

mpa_languages_dir([string $path = 'relative' ]) : string
Parameters
$path : string = 'relative'

'relative'|'absolute' Optional. 'relative' by default (that suits well textdomain functions, like load_plugin_textdomain()).

Tags
since
1.2.1

mpa_uploads_dir()

mpa_uploads_dir() : string
Tags
since
1.0

mpa_version()

mpa_version() : string
Tags
since
1.0

mpa_get_plugin_data()

mpa_get_plugin_data() : string
Tags
since
1.0

mpa_name()

mpa_name() : string
Tags
since
1.1.0

mpa_shortcodes()

mpa_shortcodes() : ShortcodesRegistry
Tags
since
1.2

mpa_plugin_uri()

mpa_plugin_uri() : string
Tags
since
1.5.0

mpa_plugin_author()

mpa_plugin_author() : string
Tags
since
1.5.0

mpa_is_hotel_booking_active()

mpa_is_hotel_booking_active() : bool
Tags
since
1.14.0

Search results