Search Atlas
12873467-3b1b-467f-9a92-96a696e8a1c5Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
12873467-3b1b-467f-9a92-96a696e8a1c5Continue reading
//* Hacemos que si el usuario está conectado y no es 1, no aparezcan notificaciones de actualizaciones add_action( ‘init’, function() { global $current_user; if (is_user_logged_in() && $current_user->ID != 1) { /* Aviso de actualizaciones*/ add_action( ‘admin_head’, function(){ remove_action( ‘admin_notices’, ‘update_nag’,…Continue reading
add_filter( ‘render_block_tasty-roundups/child’, function ( $block ) { $initial_block = $block; $block = preg_replace( ‘~Continue reading
// Cambiamos el label para que ocupe menos add_action(‘admin_menu’, function () { global $menu; foreach ($menu as $key => $item) { if ($item[2] === ‘wpcode’) { $menu[$key][0] = ‘WPCode’; // Cambia el nombre del menú principal break; } } },…Continue reading
//* Mostramos los imagesizes disponibles en el dashboard add_action( ‘wp_dashboard_setup’, function () { global $wp_meta_boxes; wp_add_dashboard_widget( ‘imagesizes_dashboard_widget’, ‘Registered image sizes’, ‘fc_wpcode_imagesizes_dashboard_widget_display’ ); $dashboard = $wp_meta_boxes[‘dashboard’][‘normal’][‘core’]; $new_widget = array( ‘imagesizes_dashboard_widget’ => $dashboard[‘imagesizes_dashboard_widget’] ); unset( $dashboard[‘imagesizes_dashboard_widget’] ); $sorted_dashboard = array_merge( $new_widget, $dashboard…Continue reading
add_filter( ‘aioseo_disable_title_rewrites’, ‘aioseo_disable_term_title_rewrites’ ); function aioseo_disable_term_title_rewrites( $disabled ) { if ( is_category() || is_tag() || is_tax() ) { return true; } return false; }Continue reading
// Basic author information $author_id = get_the_author_meta(‘ID’); $author = [ ‘givenname’ => get_field(‘author_givenname’, ‘user_’.$author_id), ‘familyname’ => get_field(‘author_familyname’, ‘user_’.$author_id), ‘middlename’ => get_field(‘author_middlename’, ‘user_’.$author_id), ‘prefix’ => get_field(‘author_prefix’, ‘user_’.$author_id), ‘suffix’ => get_field(‘author_suffix’, ‘user_’.$author_id), ‘gender’ => get_field(‘author_gender’, ‘user_’.$author_id), ‘description’ => get_field(‘author_description’, ‘user_’.$author_id), ‘website’ =>…Continue reading