This file contains 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 | |
if ( ! function_exists( 'wp_util_get_timezone_choices' ) ) : | |
/** | |
* Returns an associative array of timezone choices grouped by continent or context. | |
* | |
* WordPress does not provide a static list of timezone choices or core function to return | |
* an array of timezone choices that have been optionally translated and free from their | |
* surrounding HTML markup as otherwise returned by WP core function wp_timezone_choice(). |
This file contains 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
Test |
This file contains 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 | |
use Illuminate\Support\Facades\Blade; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider { | |
/** | |
* Bootstrap any application services. | |
* |
This file contains 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
/** | |
* By pass the need to define up to three constants, WP_DEBUG, WP_DEBUG_LOG | |
* and WP_DEBUG_DISPLAY by setting the error_log ini value so that any time | |
* logger() is called data is written to debug.log. | |
*/ | |
ini_set('log_errors', 1); | |
ini_set('error_log', WP_CONTENT_DIR . '/debug.log'); | |
/** |
This file contains 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 | |
/* | |
* The deleted_user hook fires after a user is deleted and receives | |
* only one arguement, the $user_id but there is no way to check, | |
* based on the $user_id, if the user belongs to a specific user role | |
* as the user no longer exists. Solution: add deleted_user action within | |
* the delete_user callback function which fires prior to a user being | |
* deleted and inject a closure on the deleted_user callback. | |
* | |
* http://wordpress.stackexchange.com/q/99959/13418 |