comment
10 years ago
link
10 years ago
media
10 years ago
post
10 years ago
user
10 years ago
acf-placeholder.php
10 years ago
actions.php
10 years ago
custom-field.php
10 years ago
default.php
10 years ago
taxonomy.php
10 years ago
used-by-menu.php
10 years ago
wc-placeholder.php
10 years ago
wc-placeholder.php
25 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @since 2.4.7 |
| 4 | */ |
| 5 | class CPAC_Column_WC_Placeholder extends CPAC_Column { |
| 6 | |
| 7 | public function init() { |
| 8 | |
| 9 | parent::init(); |
| 10 | |
| 11 | // Properties |
| 12 | $this->properties['type'] = 'column-wc_placeholder'; |
| 13 | $this->properties['label'] = __( 'WooCommerce', 'codepress-admin-columns' ); |
| 14 | $this->properties['is_pro_only'] = true; |
| 15 | $this->properties['group'] = 'woocommerce'; |
| 16 | } |
| 17 | |
| 18 | public function apply_conditional() { |
| 19 | return in_array( $this->storage_model->get_post_type(), array( 'product', 'shop_order', 'shop_coupon' ) ); |
| 20 | } |
| 21 | |
| 22 | public function display_settings() { |
| 23 | $this->display_settings_placeholder( 'https://www.admincolumns.com/woocommerce-columns/' ); |
| 24 | } |
| 25 | } |