// Rename the default order_items to OrderLineItem function custom_woo_ce_export_xml_order_items_node( $node = ” ) { return ‘OrderLineItem’; } add_filter( ‘woo_ce_export_xml_order_items_node’, ‘custom_woo_ce_export_xml_order_items_node’ ); ?>Continue reading
function custom_woo_ce_order_items_individual_output( $output, $order, $order_item ) { if( !empty( $order->order_items ) ) { // Check the Order Item has a Product ID if( !empty( $order_item->product_id ) ) { // Multiply the Order Item by the Quantity value if( !empty( $order_item->quantity…Continue reading
function custom_woo_ce_get_products_status( $status = array() ) { $status[] = ‘private’; return $status; } add_filter( ‘woo_ce_get_products_status’, ‘custom_woo_ce_get_products_status’ );Continue reading
add_action(‘admin_menu’, ‘content_search_add_admin_menu’); add_action(‘admin_head’, ‘content_search_custom_styles’); function content_search_add_admin_menu() { add_menu_page( ‘Content Search’, ‘Content Search’, ‘manage_options’, ‘content-search’, ‘content_search_page’, ‘dashicons-search’, 6 ); } function content_search_custom_styles() { ?> Content Search The Content Search feature enables you to find specific text within your WordPress site’s content.…Continue reading
/* * Creating a column (it is also possible to remove some default ones) */ add_filter( ‘manage_users_columns’, ‘rudr_modify_user_table’ ); function rudr_modify_user_table( $columns ) { // unset( $columns[‘posts’] ); // maybe you would like to remove default columns $columns[ ‘registration_date’ ]…Continue reading