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
/* ADD ACF optionspage*/ | |
if( function_exists('acf_add_options_sub_page') ) { | |
acf_add_options_sub_page(array( | |
'title' => '[Custom title]', | |
'parent' => '[edit.php?post_type=myposttype]', | |
)); | |
acf_add_options_sub_page('[mypagename]'); | |
acf_add_options_page(); | |
} |
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
add_action('wp_dashboard_setup', 'remove_dashboard_widgets'); | |
function remove_dashboard_widgets(){ | |
global $wp_meta_boxes; | |
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); | |
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); | |
// unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); | |
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); | |
// unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
// unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); | |
// unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); |
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
// 1.2 Default gallery link | |
add_shortcode( 'gallery', 'my_gallery_shortcode' ); | |
function my_gallery_shortcode( $atts ) { | |
$atts['link'] = 'file'; | |
return gallery_shortcode( $atts ); | |
} |
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 /** | |
* Genesis Before Content | |
* | |
* @author David Wögerer | |
* @since 2.1.2 | |
* | |
*/ | |
add_action( 'genesis_before_content', 'widget_before_content' ); | |
function widget_before_content() { |