yit_wc_check_post_columns

The YITH WooCommerce Wishlist yit wc check post columns function.

Description

yit_wc_check_post_columns( $key ); 

Parameters (1)

0. $key
The key.

Usage

  1. if ( !function_exists( 'yit_wc_check_post_columns' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-wishlist/plugin-fw/yit-woocommerce-compatibility.php'; 
  3.  
  4. // The key. 
  5. $key = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = yit_wc_check_post_columns($key); 
  9.  

Defined (1)

The function is defined in the following location(s).

/plugin-fw/yit-woocommerce-compatibility.php  
  1. function yit_wc_check_post_columns( $key ) { 
  2. $columns = array( 
  3. 'post_author',  
  4. 'post_date',  
  5. 'post_date_gmt',  
  6. 'post_content',  
  7. 'post_title',  
  8. 'post_excerpt',  
  9. 'post_status',  
  10. 'comment_status',  
  11. 'ping_status',  
  12. 'post_password',  
  13. 'post_name',  
  14. 'to_ping',  
  15. 'pinged',  
  16. 'post_modified',  
  17. 'post_modified_gmt',  
  18. 'post_content_filtered',  
  19. 'post_parent',  
  20. 'guid',  
  21. 'menu_order',  
  22. 'post_type',  
  23. 'post_mime_type',  
  24. 'comment_count',  
  25. ); 
  26.  
  27. return in_array( $key, $columns );