- Create a service file like
dash_sniffer.service - Put it in
/lib/systemd/system/ - Reload
systemdusing command:systemctl daemon-reload - Enable auto start using command:
systemctl enable dash_sniffer.service
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 | |
| function at_a_glance_override() { | |
| ob_start(); | |
| wp_dashboard_right_now(); | |
| $contents = ob_get_clean(); | |
| echo preg_replace('#.*themes\.php.*#', '', $contents); | |
| } |
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 | |
| function custom_admin_color_scheme() { | |
| wp_admin_css_color( | |
| 'scheme_name', | |
| __('Scheme Name', 'domain'), | |
| admin_url("/css/colors/scheme_name/colors.css"), | |
| array('#07273E', '#14568A', '#07273E', '#07273E'), | |
| array('base' => '#e5f8ff', 'focus' => '#fff', 'current' => '#fff') | |
| ); | |
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
| <html> | |
| <head> | |
| <title>Find String</title> | |
| </head> | |
| <body> | |
| <?php | |
| ini_set('max_execution_time', '0'); | |
| ini_set('set_time_limit', '0'); | |
| find_files('.'); |
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
| <html><head><title>Find String</title></head><body> | |
| <?php | |
| // upload the file to the root and access the file via a browser. | |
| //It may take time to run so be patient as it will check all the files in the root and the directories in the root | |
| // Most hosting services will have a time limit on how long a php script can run, typically 30 seconds. | |
| // On large sites with a lot of files this script may not be able to find and check all files within the time limit. | |
| // If you get a time out error you can try over riding the default time limits by removing the // in the front of these two lines. |
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 | |
| //Drop this in your functions.php file in a safe place | |
| //Change all references to "borough" or "Borough" to the taxonomy you need (pay attention to the correct capitalization) | |
| //Then save the edited functions.php | |
| //Find this new filter in: WP Admin > Events > Settings > Filterbar | |
| //Docs for TribeEventsFilter: http://docs.tri.be/Filter-Bar/class-TribeEventsFilter.html | |
| // | |
| // | |
| //This addresses adding/registering the taxonomy to WordPress and the filter functionality to Events Calendar Pro Filter Bar in one shot | |
| // |
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 | |
| /* | |
| Plugin Name: GF file upload to ACF image field | |
| Plugin URI: https://gist.github.com/certainlyakey/8c19791b3133beb62d323bf060bf4270 | |
| Description: Map Gravity forms file upload field to ACF image/file field so GF would upload the file and save id to DB instead of URL. | |
| Version: 1.0.0 | |
| Author: Kellen Mace | |
| */ | |
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
| // Callback function to remove default bio field from user profile page & re-title the section | |
| // ------------------------------------------------------------------ | |
| // Thanks to original code found here: https://wordpress.org/support/topic/remove-the-bio-section-from-user-profile | |
| // More reference: http://wordpress.stackexchange.com/questions/49643/remove-personal-options-section-from-profile | |
| // Alternate examples: http://wordpress.stackexchange.com/questions/38819/how-to-remove-biography-from-user-profile-admin-page | |
| if(!function_exists('remove_plain_bio')){ | |
| function remove_bio_box($buffer){ | |
| $buffer = str_replace('<h3>About Yourself</h3>','<h3>User Password</h3>',$buffer); | |
| $buffer = preg_replace('/<tr class=\"user-description-wrap\"[\s\S]*?<\/tr>/','',$buffer,1); |
OlderNewer