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
"core/heading":{ | |
"typography":{ | |
"fontWeight":"700" | |
}, | |
"spacing":{ | |
"margin":{ | |
"top":"0", | |
"bottom":"1.25rem" | |
} | |
}, |
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 | |
// Move Yoast Metabox to bottom of edit screen | |
function move_yoast_to_bottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', __NAMESPACE__ . '\move_yoast_to_bottom'); |
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 | |
/** | |
* Extract colors from a CSS or Sass file | |
* | |
* @param string $path the path to your CSS variables file | |
*/ | |
function get_colors( $path ) { | |
$dir = get_stylesheet_directory(); | |
if ( file_exists( $dir . $path ) ) { |
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 | |
/** | |
* Custom admin functions | |
*/ | |
namespace Projectname; | |
// Move Pages above Media | |
function change_menu_order( $menu_order ) { | |
return array( |
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 | |
// WP_User_Query arguments | |
$args = array( | |
'role' => 'subscriber', | |
'number' => '10', | |
'order' => 'ASC', | |
'orderby' => 'id', | |
); | |
// The User Query |
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 | |
/** | |
* Custom hooks & filters for GravityForms | |
*/ | |
namespace ProjectName; | |
/** | |
* Show zip-field before city field | |
* @link https://docs.gravityforms.com/gform_address_display_format/#examples |
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
/** | |
* See: http://www.wpallimport.com/documentation/advanced/action-reference/ | |
*/ | |
//Prevent auto indexing before first import | |
function drl_before_opleidingen_import($import_id) { | |
if( $import_id === 4) { | |
add_filter( 'searchwp_auto_reindex', '__return_false' ); | |
} | |
} |
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 | |
// Dynamically add Bootstrap column classes to footer widgets, depending on how many widgets are present | |
add_filter('dynamic_sidebar_params','tibs_footer_sidebar_params'); | |
function tibs_footer_sidebar_params($params) { | |
$sidebar_id = $params[0]['id']; | |
if ( $sidebar_id == 'sidebar-footer' ) { |
NewerOlder