add_action( ‘admin_bar_menu’, function($wp_admin_bar) { $wp_admin_bar->add_node( array( ‘id’ => ‘plugins’, ‘title’ => ‘Plugins’, ‘href’ => esc_url( admin_url( ‘plugins.php’ ) ), ‘meta’ => false )); }, 999);Continue reading
add_action( ‘current_screen’, function() { $screen = get_current_screen(); if ( $screen->id !== “dashboard” ) { add_action( ‘admin_enqueue_scripts’, function() { echo ‘ ‘; }); } });Continue reading
if ( ! function_exists( ‘wcv_add_vendor_id_col_data’ ) ) { /** * Add vendor id to CSV data * * @param array $row_data The row data. * @param int $vendor_id The vendor id. */ function wcv_add_vendor_id_col_data( $row_data, $vendor_id ) { if (…Continue reading
if ( ! function_exists( ‘wcv_log_commission_order_status’ ) ) { /** * Log commission when order status is ? * * @param array $order_statuses The order statuses. * @return array */ function wcv_log_commission_order_status( $order_statuses ) { $key = array_search( ‘processing’, $order_statuses, true…Continue reading
add_filter( ‘tasty_recipes_recipe_template_vars’, function( $template_vars ) { $template_vars[‘recipe_author_name’] = ‘New name here’; //Replace New name here $template_vars[‘recipe_details’][‘author’][‘value’] = ‘‘ . $template_vars[‘recipe_author_name’] . ‘‘; return $template_vars; } );Continue reading