Changeset 1081487
- Timestamp:
- 02/03/2015 11:48:21 AM (11 years ago)
- Location:
- push-notifications/trunk
- Files:
-
- 2 edited
-
pushwoosh.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
push-notifications/trunk/pushwoosh.php
r1010426 r1081487 3 3 /** 4 4 * @package Pushwoosh 5 * @version 2.3.1 05 * @version 2.3.11 6 6 */ 7 7 … … 12 12 * Author: Arello Mobile 13 13 * Author URI: http://www.arello-mobile.com/ 14 * Version: 2.3.1 014 * Version: 2.3.11 15 15 * 16 16 * Copyright 2014 Arello Mobile (email: support@arello-mobile.com) … … 50 50 'high' 51 51 ); 52 53 // add Pushwoosh meta box for all custom post types 54 $args = array( 55 'public' => true, 56 '_builtin' => false 57 ); 58 $output = 'names'; // names or objects, note names is the default 59 $operator = 'and'; // 'and' or 'or' 60 $post_types = get_post_types( $args, $output, $operator ); 61 foreach ( $post_types as $post_type ) { 62 add_meta_box( 63 'pushwoosh_section_id', 64 __('Pushwoosh notification', 'pushwoosh'), 65 'pushwoosh_message_box', 66 $post_type, 67 'side', 68 'high' 69 ); 70 add_action('publish_' . $post_type, 'pushwoosh_publish_post'); 71 add_action('draft_'. $post_type, 'pushwoosh_save_post'); 72 add_action('pending_'. $post_type, 'pushwoosh_save_post'); 73 } 52 74 } 53 75 -
push-notifications/trunk/readme.txt
r1010426 r1081487 5 5 Arello Mobile: http://www.arello-mobile.com 6 6 Requires at least: 3.0.1 7 Tested up to: 4. 07 Tested up to: 4.1 8 8 Stable tag: 2.4 9 9 License: GPLv2 or later … … 56 56 * Refactoring plugin for shared hosting 57 57 58 = 2.3.11 = 59 * Add support of custom post types 60 58 61 == Installation == 59 62 1. Download the Pushwoosh plugin.
Note: See TracChangeset
for help on using the changeset viewer.