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
| /** | |
| * Debug WP updates | |
| * Displays hidden plugin and theme updates on update-core screen. | |
| * | |
| * @source https://stackoverflow.com/questions/22137814/wordpress-shows-i-have-1-plugin-update-when-all-plugins-are-already-updated/52132227 | |
| * @author Peter Morvay <moped@jepan.sk> | |
| */ | |
| function debug_pending_updates() { | |
| // Rough safety nets |
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
| /** | |
| * Blocks order if condition is met | |
| * - blocks Emma Rose orders | |
| * - blocks orders from New York | |
| * | |
| * @param array $data | |
| * @param object $errors | |
| * @return void | |
| */ | |
| function pmo_custom_checkout_field_validation( $data, $errors ) { |
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 | |
| if (!empty($_GET['q'])) { | |
| switch ($_GET['q']) { | |
| case 'info': | |
| phpinfo(); | |
| exit; | |
| break; | |
| } | |
| } | |
| ?> |
NewerOlder