Changeset 1324298
- Timestamp:
- 01/08/2016 11:06:18 PM (10 years ago)
- Location:
- subscribe-to-category/trunk
- Files:
-
- 3 edited
-
classes/class-subscribe.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
subscribe-to-category.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
subscribe-to-category/trunk/classes/class-subscribe.php
r1294734 r1324298 217 217 return $this->notice = $notice; 218 218 } 219 220 219 220 // hook right before deleting post 221 do_action( 'stc_before_unsubscribe', $user_id ); 222 221 223 $subscriber_email = get_the_title( $user_id ); 222 224 wp_delete_post( $user_id ); … … 478 480 if(!empty( $post_id )){ 479 481 $post_id = wp_update_post( $post_data ); 482 483 // hook after updating a subscriber 484 do_action( 'stc_after_update_subscriber', $post_id, $data['categories'], $data['all_categories'] == true ? '1' : '0' ); 480 485 }else{ 481 486 $post_id = wp_insert_post( $post_data ); 482 487 update_post_meta( $post_id, '_stc_hash', md5( $data['email'].time() ) ); 488 489 // hook after inserting a subscriber 490 do_action( 'stc_after_insert_subscriber', $post_id, $data['categories'], $data['all_categories'] == true ? '1' : '0' ); 483 491 } 484 492 -
subscribe-to-category/trunk/readme.txt
r1294734 r1324298 3 3 Tags: subscribe to post, subscribe to category, subscribe to news, subscribe 4 4 Requires at least: 3.9 5 Tested up to: 4. 3.16 Stable tag: 1. 6.05 Tested up to: 4.4.1 6 Stable tag: 1.7.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 83 83 add_action( 'stc_after_message', 'my_stc_after_message', 10, 2 ); 84 84 85 // Parameters: $subscriber_post_id, $categories, bool $all_categories 86 add_action( 'stc_after_update_subscriber', 'my_stc_after_update_subscriber', 10, 3 ); 87 add_action( 'stc_after_insert_subscriber', 'my_stc_after_insert_subscriber', 10, 3 ); 88 89 // Parameters: $subscriber_post_id, 90 add_action( 'stc_before_unsubscribe', 'my_stc_before_unsubscribe', 10, 1 ); // runs before deleting a subscriber from database 91 85 92 86 93 /** … … 107 114 108 115 == Changelog == 116 117 = 1.7.0 = 118 * Added some new hooks: stc_after_update_subscriber, stc_after_insert_subscriber, stc_before_unsubscribe 109 119 110 120 = 1.6.0 = -
subscribe-to-category/trunk/subscribe-to-category.php
r1294734 r1324298 4 4 Plugin URI: http://dcweb.nu 5 5 Description: Lets your visitor subscribe to posts for one or several categories. 6 Version: 1. 6.06 Version: 1.7.0 7 7 Author: Daniel Söderström 8 8 Author URI: http://dcweb.nu/
Note: See TracChangeset
for help on using the changeset viewer.