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
#!/bin/bash | |
# Prints a list of wp cron schedules on servers set up by SpinupWP. | |
# Includes only standard wp cron events, nothing custom. | |
# | |
# Setup: | |
# cd /usr/bin/ | |
# sudo vim get_cron_schedules.sh | |
# -- paste in the contents of this file and save | |
# sudo chmod 755 get_cron_schedules.sh | |
# |
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( 'plugin_basename_main_file' ) ) { | |
/** | |
* Gets plugin folder and main file. | |
* Example result: Core-Functionality/core-functionality.php | |
* | |
* `plugin_basename()` returns main plugin file only when called from that file. | |
* This function works from within any plugin file. | |
* |