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 | |
namespace HWID\ACFGravity; | |
class ACF_GF_DropDown { | |
public static function init() { | |
add_filter( 'acf/load_field/key=FIELDKEY', [ 'HWID\ACFGravity\ACF_GF_DropDown', 'populate_gform_dropdown' ] ); | |
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 | |
/* | |
* This class will customize the WooCommerce product schema markup | |
*/ | |
namespace HWID\Woo; | |
class CustomizeSchema { | |
static function init() { | |
add_filter( 'woocommerce_structured_data_product', [ 'HWID\Woo\CustomizeSchema', 'override_schema_markup' ], 10, 2 ); | |
} |
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 | |
/* | |
* This class will disable Yoast SEO fields on the edit screen for a particular post type | |
*/ | |
namespace HWID\CustomPostType; | |
class DisableYoast { | |
static function init() { | |
// The important aspect of this add_action is to make sure it's set to at least 11 in priority | |
add_action( 'add_meta_boxes', [ 'HWID\CustomPostType\Expertise', 'remove_yoast' ], 11 ); |
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 | |
namespace HWID\Woo; | |
class LinkChooser { | |
static function init() { | |
add_filter( 'wp_link_query_args', [ 'HWID\Woo\LinkChooser', 'add_variations_link' ] ); | |
add_filter( 'wp_link_query', [ 'HWID\Woo\LinkChooser', 'variations_labels' ], 10, 2 ); | |
} |
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 | |
namespace HWID\SampleCode; | |
class GravityForms { | |
public static function init() { | |
add_filter( 'gform_custom_merge_tags', [ 'HWID\SampleCode\GravityForms', 'custom_merge_tags' ], 10, 4 ); | |
add_filter( 'gform_replace_merge_tags', [ 'HWID\SampleCode\GravityForms', 'replace_merge_tags' ], 10, 3 ); | |
} | |
/** |
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
.gform_wrapper { | |
@fieldBorder: @lightGray; | |
@fieldBg: @xLightBlue; | |
@focusBorder: @aqua; | |
@focusBg: @white; | |
@fieldGutter: 14px; | |
@halfGutter: @fieldGutter / 2; |
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 | |
/** | |
* Require All Columns of List Field | |
* http://gravitywiz.com/require-all-columns-of-list-field/ | |
*/ | |
class GWRequireListColumns { | |
private $field_ids; | |
public static $fields_with_req_cols = array(); |
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
https://placeimg.com/800/600/nature?cid=1 | |
https://placeimg.com/800/600/nature?cid=2 | |
https://placeimg.com/800/600/nature?cid=3 | |
https://placeimg.com/800/600/nature?cid=4 | |
https://placeimg.com/800/600/nature?cid=5 | |
https://placeimg.com/800/600/nature?cid=6 | |
https://placeimg.com/800/600/nature?cid=7 | |
https://placeimg.com/800/600/nature?cid=8 | |
https://placeimg.com/800/600/nature?cid=9 | |
https://placeimg.com/800/600/nature?cid=10 |
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
UPDATE wp_posts | |
SET comment_status = 'closed' | |
WHERE comment_status = 'open'; | |
UPDATE wp_posts | |
SET ping_status = 'closed' | |
WHERE ping_status = 'open'; |
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 | |
class ACF_SampleOptions_Page { | |
static $slug = 'sample_options_slug'; | |
static $post_id = 'sample_options_id'; | |
public static function init() { |