wwolf
google-site-verification=3G4LhnxdCyUKQP-Hh3Re_gVM6oB2csSIWbSa6N1KbK0Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
google-site-verification=3G4LhnxdCyUKQP-Hh3Re_gVM6oB2csSIWbSa6N1KbK0Continue reading
// ACF custom variables $knowsabout = get_field( ‘author_knowsabout’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout2 = get_field( ‘author_knowsabout_2’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout3 = get_field( ‘author_knowsabout_3’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout4 = get_field( ‘author_knowsabout_4’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout5 = get_field( ‘author_knowsabout_5’,…Continue reading
add_action(‘init’, function () { global $wp_post_types; if (isset($wp_post_types[‘post’])) { $wp_post_types[‘post’]->capabilities = []; $wp_post_types[‘post’]->map_meta_cap = false; } register_taxonomy(‘post_category’, []); register_taxonomy(‘post_tag’, []); }); add_action(‘widgets_init’, function () { unregister_widget(‘WP_Widget_Recent_Posts’); }); add_action(‘admin_bar_menu’, function ($wp_admin_bar) { //$wp_admin_bar->remove_node(‘new-post’); }, 999); add_action(‘admin_menu’, function () { remove_menu_page(‘edit.php’); remove_submenu_page(‘edit.php’,…Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
add_filter( ‘login_display_language_dropdown’, ‘__return_false’ );Continue reading
// La cookie de login durará 354 días. Usar en sitios en los que sólo entramos nosotros add_filter(‘auth_cookie_expiration’, function ($expires) { return 3153600000; // Logged in for 365 days });Continue reading
//* Mete el favicon como imagen del login add_action(‘login_head’, function () { $favicon_url = get_site_icon_url(); // Obtiene la URL del favicon desde el personalizador if ($favicon_url) { echo ‘ ‘; } });Continue reading