365 Days of Movies
January 1 - Rocky
January 6 - Sherlock Holmes
January 11 - Goodfellas
February 2 - Groundhog Day
<?php | |
add_filter( 'acf/load_field', 'mytheme_set_field_name' ); | |
function mytheme_set_field_name( $field ){ | |
if( is_admin() ){ | |
$screen = get_current_screen(); | |
if( $screen->id == 'acf-field-group' ) | |
return $field; |
<?php | |
add_filter( 'algolia_terms_index_settings', '__return_empty_array' ); | |
add_filter( 'algolia_users_index_settings', '__return_empty_array' ); | |
add_filter( 'algolia_posts_listing_index_settings', 'mytheme_algolia_listing_settings' ); | |
function mytheme_algolia_listing_settings( $settings ){ | |
$numeric_fields = array_keys( mytheme_algolia_faceted_fields( array( 'int', 'float' ) ) ); | |
$string_fields = array_keys( mytheme_algolia_faceted_fields( 'string' ) ); |
wget -i image-list.txt --force-directories |
# BEGIN Media from Live Site | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Use uploads directory from live site | |
RewriteBase /wp-content/uploads/ | |
RewriteCond %{HTTP_HOST} !^www\.livedomain\.com | |
RewriteCond %{HTTP_HOST} !^livedomain\.com | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/ |
January 1 - Rocky
January 6 - Sherlock Holmes
January 11 - Goodfellas
February 2 - Groundhog Day
<?php | |
add_filter( 'gform_field_validation', 'mytheme_fix_custom_validation', 10, 4 ); | |
/** | |
* Fixes Gravity Forms Custom validation message. | |
* | |
* @link https://docs.gravityforms.com/gform_field_validation/ | |
* | |
* @param array $result The result array. |
PROJECTNAME/ | |
| bin -- Can be excluded from project distribution. | |
| images/ -- Images added here will be optimized. | |
| sass/ | |
| blocks/ | |
| BLOCKNAME/ -- SCSS files for BLOCKNAME. | |
| BLOCKNAME.scss -- Repeat for all blocks needed. | |
| PROJECTNAME.scss | |
| PROJECTNAME-admin.scss | |
| editor-styles.scss -- Admin editor specific styles. |
<?php | |
/** | |
* This file will activate the Airplane Mode plugin if not already activated. This is helpful when you do not have internet connection and you're unable to reach the WP Admin Plugins page to activate the plugin. | |
*/ | |
// get WP bootstrap | |
define('WP_USE_THEMES', false); | |
require(__DIR__ . '/wp/wp-blog-header.php'); |
Array | |
( | |
[from] => 0 | |
[size] => 54 | |
[sort] => Array | |
( | |
[0] => Array | |
( | |
[meta_value_num] => Array | |
( |
<?php | |
// ^^ Other config settings such as database credentials. ^^ | |
/** | |
* WordPress debugging mode. | |
* | |
* For information on other constants that can be used for debugging, | |
* visit the Codex. | |
* |