MasterPress 1.2.8 is now available
It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
A powerful class representing a file within your WordPress site, which also provides base methods for the WOOF_Image class.
An alias for the WOOF_File::permalink method, to retrieve the absolute URL to this file.
An alias for the WOOF_File::permalink method, to retrieve the absolute URL to this file.
Returns the name of the file, including extension.
A more concise synonym for the WOOF_File::filesizeinbytes method, to retrieve the integer size of the file in bytes.
Returns the inode change time of a file as a date value or formatted date string, which is accessed via PHP’s filectime function.
Checks if this file object does indeed point to a valid file path.
Returns the extension of the file with or without the period.
Retrieves the name of the file, sans-extension.
Retrieves the full path to the file name in the file system.
Retrieves the formatted size of the file on disk.
Retrieves the integer size of the file in bytes.
Returns a descriptive string of the type of the file.
A general purpose method to format an integer containing a file size in bytes into a formatted file size string. .
Retrieves an associative array of info about this file.
Retrieves the MIME type string for the file.
Returns the last modified time of a file as a date value or formatted date string, which is accessed via PHP’s filemtime function.
A more concise synonym for the WOOF_File::basename method, to retrieve the name of the file, including extension.
A synonym of the WOOF_File::filepath method, to retrieve the full path to the file name in the file system.
Retrieves the absolute URL to the file, including the protocol and domain.
Returns a shortened descriptive string of the type of the file.
An alias for the WOOF_File::filesize method to retrieve the formatted size of the file on disk.
Retrieves the URL to the file, which can be a full URL, or root_relative (excluding the protocol and domain).
Deletes the file from the file-system, assuming the web user has enough permission to do so.
An alias of the WOOF_File::delete function to delete the file from the file-system, assuming the web user has enough permission to do so.The unlink word comes from the PHP function name unlink, which this method uses to attempt the delete.
Reads the content of the file and returns the string representation of that content.
The constructor for WOOF_File, to create the object, which requires both the path to the file and its URL.
A utility method to retrieve a grouped list of file types grouped by the “category” of the file.
Returns a string representing the file rendered as a Mustache template for the given data. .
Converts sizes of the form “128M”, “2G”, “1K” to the equivalent integer byte size.
The constructor for WOOF_File, to create the object, which requires both the path to the file and its URL.
Attempts to infer the path of the given URL in the WordPress content directory. Note: this function is intended for internal use.
The constructor for WOOF_File, to create the object, which requires both the path to the file and its URL.
An alias for the WOOF_File::permalink method, to retrieve the absolute URL to this file.
An alias for the WOOF_File::permalink method, to retrieve the absolute URL to this file.
Returns the name of the file, including extension.
A more concise synonym for the WOOF_File::filesizeinbytes method, to retrieve the integer size of the file in bytes.
Returns the inode change time of a file as a date value or formatted date string, which is accessed via PHP’s filectime function.
Reads the content of the file and returns the string representation of that content.
Deletes the file from the file-system, assuming the web user has enough permission to do so.
Generates an RSS enclosure tag representing the file.
Checks if this file object does indeed point to a valid file path.
Returns the extension of the file with or without the period.
A utility method to retrieve a grouped list of file types grouped by the “category” of the file.
Retrieves the name of the file, sans-extension.
Retrieves the full path to the file name in the file system.
Retrieves the formatted size of the file on disk.
Retrieves the integer size of the file in bytes.
Returns a descriptive string of the type of the file.
A general purpose method to format an integer containing a file size in bytes into a formatted file size string. .
Attempts to infer the path of the given URL in the WordPress content directory. Note: this function is intended for internal use.
Retrieves an associative array of info about this file.
Retrieves text for an HTML link (anchor) tag pointing to the file, using the name of the file (including extension) as the link text by default.
Retrieves the MIME type string for the file.
Returns the last modified time of a file as a date value or formatted date string, which is accessed via PHP’s filemtime function.
A more concise synonym for the WOOF_File::basename method, to retrieve the name of the file, including extension.
A synonym of the WOOF_File::filepath method, to retrieve the full path to the file name in the file system.
Retrieves the absolute URL to the file, including the protocol and domain.
Returns a string representing the file rendered as a Mustache template for the given data. .
Returns a shortened descriptive string of the type of the file.
An alias for the WOOF_File::filesize method to retrieve the formatted size of the file on disk.
Converts sizes of the form “128M”, “2G”, “1K” to the equivalent integer byte size.
An alias of the WOOF_File::delete function to delete the file from the file-system, assuming the web user has enough permission to do so.The unlink word comes from the PHP function name unlink, which this method uses to attempt the delete.
Retrieves the URL to the file, which can be a full URL, or root_relative (excluding the protocol and domain).
View method list from the base class WOOF_Wrap.
It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.
We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).
This plug-in is not compatible with the WordPress.com hosted service.
Copyright 2021 © Three AM All rights reserved.