Changeset 1711592
- Timestamp:
- 08/10/2017 03:25:45 PM (9 years ago)
- File:
-
- 1 edited
-
monetize-me/trunk/inc/custom-post-types/ad.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
monetize-me/trunk/inc/custom-post-types/ad.php
r1709597 r1711592 15 15 // 16 16 add_action('init', array($this, 'create_custom_post_type')); 17 18 // Disable Rich Editor for Ad Post Type 19 add_filter( 'user_can_richedit', array($this, 'disable_for_cpt') ); 20 } 21 22 /** 23 * 24 */ 25 function disable_for_cpt( $default ) { 26 global $post; 27 28 if ($this->post_type == get_post_type( $post )) 29 return false; 30 31 return $default; 17 32 } 18 33
Note: See TracChangeset
for help on using the changeset viewer.