This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* is_in_admin | |
* | |
* Check and see if we are indeed in the admin area of the site | |
* | |
* @since 7.4 | |
* @access public | |
* @static | |
* @author Kevin Pirnie <me@kpirnie.com> | |
* @package Kevin's Framework |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* attachment_url_to_path | |
* | |
* Static method for getting the physical server path to an image/attachment/file | |
* based on it's URL | |
* | |
* @since 7.3 | |
* @access public | |
* @author Kevin Pirnie <me@kpirnie.com> | |
* @package Kevin's Framework |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* get_urls | |
* | |
* Public method pull to gather all public URLs | |
* | |
* @since 7.3 | |
* @access public | |
* @author Kevin Pirnie <me@kpirnie.com> | |
* @package Kevin's Framework | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* get_id_from_slug | |
* | |
* This method is utilized for returning the post id from the slug | |
* | |
* @since 7.3 | |
* @access public | |
* @author Kevin Pirnie <me@kpirnie.com> | |
* @package Kevin's Framework | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* get_current_post | |
* | |
* Static method for getting the current post | |
* | |
* @since 7.3 | |
* @access public | |
* @author Kevin Pirnie <me@kpirnie.com> | |
* @package Kevin's Framework | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* is_rest_request | |
* | |
* this method attempts to determine if the current request is for the REST API or not | |
* based on a fiew factors | |
* | |
* @since 7.4 | |
* @access public | |
* @author Kevin Pirnie <me@kpirnie.com> | |
* @package Protect Your REmote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* get_base_breadcrumbs | |
* | |
* Public method to return a html string of breadcrumb navigation | |
* checks for a couple plugins, then attempts to build one manually | |
* | |
* @since 7.4 | |
* @access public | |
* @static | |
* @author Kevin Pirnie <me@kpirnie.com> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* function to filter the remote request arguments to ensure we are passing | |
* http auth headers when remotely calling from staging or dev environments | |
* only used if HOST of requested URL matches the site's home HOST and if the auth | |
* exists | |
* | |
* @param array $_the_args The existing arguments passed with the request. | |
* @param string $_the_url The URL being requested. | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* mask_email_address | |
* | |
* Mask an email address from bots | |
* | |
* @since 7.3 | |
* @access public | |
* @static | |
* @author Kevin Pirnie <me@kpirnie.com> | |
* @package Kevin's CRM and Support |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// include the wp-config.php file | |
include "/CHANGE_THIS_PATH/wp-config.php"; | |
// set a username | |
$username = 'CHANGE_THIS'; | |
// set a password | |
$password = 'CHANGE_THIS'; |
NewerOlder