admin – plugin – wpcode – Header
add_action( ‘admin_head’, function() { // Add CSS code below. ?> .wpcode-header-top {display:none;} <?php });Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action( ‘admin_head’, function() { // Add CSS code below. ?> .wpcode-header-top {display:none;} <?php });Continue reading
add_action( ‘admin_head’, function() { // Add CSS code below. ?> /* background color */ .wpat #wpwrap {background: #F5F5F7;} /* wphave submenu arrow */ body.wpat.wpat-menu-left-expand #adminmenu li.wp-has-submenu a.menu-top .wp-menu-name:before {display:none;} <?php });Continue reading
add_action( ‘wp_dashboard_setup’, function () { global $wp_meta_boxes; $wp_meta_boxes[‘dashboard’] = array(); remove_action( ‘welcome_panel’, ‘wp_welcome_panel’ ); }, 1000 );Continue reading
// Remove Tools Submenu Item for Site Health. add_action( ‘admin_menu’, function () { remove_submenu_page( ‘tools.php’, ‘site-health.php’ ); } ); // Prevent direct access to the Site Health page. add_action( ‘current_screen’, function () { $screen = get_current_screen(); if ( ‘site-health’ ===…Continue reading
// Remove original bundle item select field which defaults to 30 items function kjm_remove_old_bundle_field() { remove_action( ‘edd_meta_box_files_fields’, ‘edd_render_products_field’, 10 ); } add_action( ‘plugins_loaded’, ‘kjm_remove_old_bundle_field’ ); // Add back bundle select field with ‘number’ specified function kjm_render_products_field( $post_id ) { $type…Continue reading
/** * Add a metabox to initiate the action */ function eddrll_add_metabox() { $post_types = apply_filters( ‘edd_download_metabox_post_types’, array( ‘download’ ) ); foreach ( $post_types as $post_type ) { add_meta_box( ‘edd_retroactive_lifetime_licenses’, __( ‘Retroactive Lifetime Licenses’, ‘edd-retroactive-lifetime-licenses’ ), ‘eddrll_render_metabox’, $post_type, ‘advanced’, ‘low’…Continue reading
function pd_edd_pre_update_user_profile( $user_id, $userdata ) { // How many characters should the password be? $length = 8; $password = isset( $_POST[‘edd_new_user_pass1’] ) ? $_POST[‘edd_new_user_pass1’] : ”; if ( ! empty( $password ) && ( strlen( $password ) < $length )…Continue reading
/* Remove the ‘Delete’ option from the Payment List Quick Action * This can require a fine tuning of the user roles, typically handeled in a plugin * Example: http://wordpress.org/plugins/user-role-editor/ * * Source of snippet: https://easydigitaldownloads.com/support/topic/custom-payment-history-view-per-user-role/ */ function ck_edd_remove_order_trash_action( $row_actions,…Continue reading
function kjm_modify_user_verification_url_expiration( $url ) { // EDD default is ‘+24 hours’. ‘days’ also works $url = add_query_arg( ‘ttl’, strtotime( ‘+48 hours’ ), $url ); return $url; } add_filter( ‘edd_get_user_verification_url’, ‘kjm_modify_user_verification_url_expiration’ );Continue reading
function edd_hidden_callback( $args ) { global $edd_options; if ( isset( $edd_options[ $args[‘id’] ] ) ) $value = $edd_options[ $args[‘id’] ]; else $value = isset( $args[‘std’] ) ? $args[‘std’] : ”; $size = ( isset( $args[‘size’] ) && ! is_null( $args[‘size’]…Continue reading