CopyPastor

Detecting plagiarism made easy.

Score: 0.9060485947655076; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2019-08-25
by Fernando Laranjeira

Original Post

Original - Posted on 2019-08-24
by Fernando Laranjeira



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I did the test and the code worked for only one status. I have 2 different statuses that I want to stay with the same colors.....But it works for only 1.
add_action('admin_head', 'styling_admin_order_list' ); function styling_admin_order_list() { global $pagenow, $post; if( $pagenow != 'edit.php') return; // Exit if( get_post_type($post->ID) != 'shop_order' ) return; // Exit // HERE we set your custom status $order_status = 'expirado' or 'rejeitado'; // <==== HERE ?> <style> .order-status.status-<?php echo sanitize_title( $order_status ); ?> { background: #c13e41; color: #ffffff; } </style> <?php }
Does anyone have any suggestions as to how I can handle this?
Thank you very much!
I did the test and the code worked for only one status. I have 2 different statuses that I want to stay with the same colors.....But it works for only 1.

**add_action('admin_head', 'styling_admin_order_list' ); function styling_admin_order_list() { global $pagenow, $post; if( $pagenow != 'edit.php') return; // Exit if( get_post_type($post->ID) != 'shop_order' ) return; // Exit // HERE we set your custom status $order_status = 'expirado' or 'rejeitado'; // <==== HERE ?> <style> .order-status.status-<?php echo sanitize_title( $order_status ); ?> { background: #c13e41; color: #ffffff; } </style> <?php }**
Does anyone have any suggestions as to how I can handle this?
Thank you very much!

        
Present in both answers; Present only in the new answer; Present only in the old answer;