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 | |
| /* | |
| Based on http://github.com/deliciousbrains/wp-migrate-db-pro-tweaks | |
| */ | |
| class ACF_WP_Migrate_DB_Pro_Tweaks { | |
| function __construct() { | |
| add_filter( 'wpmdb_preserved_options', array( $this, 'preserved_options' ) ); | |
| } |
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 jtd_acf_auto_set_license_keys() { | |
| if ( !get_option('acf_pro_license') && defined('ACF_5_KEY') ) { | |
| $save = array( | |
| 'key' => ACF_5_KEY, | |
| 'url' => home_url() | |
| ); | |
| $save = maybe_serialize($save); |
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 | |
| /** | |
| * Test a bunch of permutations of the password when logging into WordPress. | |
| * | |
| * Drop this file in your mu-plugins directory. | |
| * Inspired by Facebook: https://twitter.com/gcpascutto/status/821755332984717314/photo/1 | |
| * Works with any properly coded hashing pluggables, like Roots’ WP Password bcrypt. | |
| * | |
| * @author bjornjohansen | |
| * @version 0.1.4 |
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
| /* globals FWP */ | |
| /** | |
| * JavaScript for FacetWP Infinite Scroll | |
| */ | |
| (function( $ ) { | |
| 'use-strict'; | |
| var throttleTimer = null; | |
| var throttleDelay = 100; |
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
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20150227 | |
| # | |
| # This file is tailored for a WordPress project | |
| # using the default directory structure | |
| # | |
| # This file specifies intentionally untracked files to ignore |
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> | |
| <!-- ... --> | |
| <!-- Embed analytics.js as local file --> | |
| <script src="/analytics.js"></script> | |
| </html> |
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 fwp_format_date( $params, $class ) { | |
| if ( 'facet_age' == $params['facet_name'] ) { | |
| $date = explode( '/', $params['facet_value'] ); | |
| $date = $date[2] . '-' . $date[0] . '-' . $date[1]; | |
| $params['facet_value'] = $date; | |
| $params['facet_display_value'] = $date; | |
| } | |
| return $params; | |
| } |
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
| Disable REST Api without Plugins | |
| https://rudrastyh.com/wordpress/disable-rest-api.html | |
| Add featured image & alt text to WP REST API | |
| https://allisontarr.com/2021/10/13/add-featured-image-alt-text-to-wp-rest-api/ | |
| Allow ALL cross origin requests to WordPress REST API | |
| https://github.com/Shelob9/rest-all-cors | |
| WordPress theme using Rest API and Vue.js |
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 | |
| add_action( 'init', function(){ | |
| // Replace '901bcc678021c0e12f1583085cafda1d' with a secret of your own. | |
| if ( ! empty( $_GET['purge-cache'] ) && '901bcc678021c0e12f1583085cafda1d' === $_GET['purge-cache'] ) { | |
| WpeCommon::purge_varnish_cache_all(); | |
| echo 'Cache purged'; | |
| exit; | |
| } | |
| }); |
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 | |
| defined( 'ABSPATH' ) or die( 'Poop.' ); | |
| /** | |
| * Plugin Name: _Sample Admin Notice | |
| * Description: Displays a sample admin notice once for admins. (Requires PHP 5.3+.) | |
| * Version: 0.1 | |
| * Author: Caspar Hübinger | |
| * Plugin URI: https://gist.github.com/glueckpress/6befeb937da89025d4d8#file-sample-admin-notice-php | |
| * Author URI: https://profiles.wordpress.org/glueckpress | |
| * License: GNU General Public License v3 |