Changeset 2577176
- Timestamp:
- 08/03/2021 01:00:20 PM (5 years ago)
- Location:
- detabess/trunk
- Files:
-
- 2 edited
-
detabess-functions.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
detabess/trunk/detabess-functions.php
r2576333 r2577176 1111 1111 */ 1112 1112 function dtbs_post_counter_update( $new_status, $old_status, $post ) { 1113 $dtbs_list = dtbs_get_list(); 1114 foreach ( $dtbs_list as $no => $val ) { 1115 dtbs_reg_count_update( $val['cd_id'] ); 1113 if ( $new_status != $old_status ) { 1114 $dtbs_list = dtbs_get_list(); 1115 foreach ( $dtbs_list as $no => $val ) { 1116 dtbs_reg_count_update( $val['cd_id'] ); 1117 } 1116 1118 } 1117 1119 return; 1118 1120 } 1119 1121 1120 add_action( 'transition_post_status', 'dtbs_post_counter_update');1122 add_action( 'transition_post_status', 'dtbs_post_counter_update', 10, 3 ); -
detabess/trunk/readme.txt
r2576333 r2577176 4 4 Requires at least: 4.7.0 5 5 Tested up to: 5.8 6 Stable tag: 1.0 6 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 117 117 == Upgrade Notice == 118 118 119 = 1.0.1 = 120 投稿ステータスが変更された際の、フック読み出しのパラメータを追加 121 Add hook read parameters when posting status changes 122 119 123 = 1.0 = 120 124 Initial Release
Note: See TracChangeset
for help on using the changeset viewer.