/** * PXLSZ – Activiteitenlog (per gebruiker) * – Logt acties van alle ingelogde gebruikers behalve subscribers (incl. succesvolle logins). * – Alleen PXLSZ_NK, PXLSZ_TJW, Nico, Thijs zien Extra → Activiteitenlog. * – Overzicht per gebruiker + detailweergave per gebruiker.…Continue reading
/** * Simpele vervanger voor de plugin “Duplicate Page”. * Voegt een “Dupliceer” link toe bij berichten en pagina’s. */ // Link “Dupliceer” toevoegen in de lijstweergave add_filter( ‘post_row_actions’, ‘pxlsz_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘pxlsz_duplicate_post_link’, 10, 2 ); function…Continue reading
/** * Add the product column to the order table. * * @param array $columns The columns. * * @return array The modified columns. */ add_filter( ‘wcv_order_table_columns’, ‘wcv_add_product_column_table_columns’ ); /** * Add the product column to the order table. *…Continue reading
add_action(‘wp_head’, ‘custom_lazyload_script’); function custom_lazyload_script(){ ?>Continue reading
function homelink(){ $homelink = ‘Home‘; return $homelink;} function shoplink() { return ‘Shop‘;} function discoverlink() { $discoverlink = ‘Discover STUDEX®‘; return $discoverlink; } function bloglink() { $bloglink = ‘Trend Blog‘; return $bloglink; } function b2blink() { $b2blink = ‘STUDEX® B2B‘; return…Continue reading
add_filter( ‘intermediate_image_sizes_advanced’, function( $sizes ) { // Disable specific thumbnail sizes, uncomment the ones you want to disable. unset( $sizes[‘thumbnail’] ); // 150px x 150px // unset( $sizes[‘medium’] ); // 300px x 300px unset( $sizes[‘medium_large’] ); // 768px x 0px…Continue reading
add_filter( ‘big_image_size_threshold’, ‘__return_false’ );Continue reading
function custom_dashboard_widget() { echo ‘ Për cdo pytje rreth webfaqes ju lutem na kontaktoni. Website: Mjellma.al Email: [email protected] Phone Number: +383 49 844 249 ‘; } function add_custom_dashboard_widget() { wp_add_dashboard_widget( ‘custom_dashboard_widget’, ‘Shërbimi i ndihmës.’, ‘custom_dashboard_widget’ ); } add_action(‘wp_dashboard_setup’, ‘add_custom_dashboard_widget’);Continue reading
// legacy – for CPT-based orders add_filter( ‘manage_edit-shop_order_columns’, ‘misha_order_items_column’ ); // for HPOS-based orders add_filter( ‘manage_woocommerce_page_wc-orders_columns’, ‘misha_order_items_column’ ); function misha_order_items_column( $columns ) { // let’s add our column before “Total” $columns = array_slice( $columns, 0, 4, true ) // 4…Continue reading
function add_user_role_to_body_classes( $classes ) { global $current_user; foreach ( $current_user->roles as $user_role ) { if ( is_admin() ) { $classes .= ‘ role-‘ . $user_role; } else { $classes[] = ‘role-‘ . $user_role; } } return $classes; } add_filter( ‘body_class’,…Continue reading