Changeset 2070256
- Timestamp:
- 04/17/2019 09:32:56 PM (7 years ago)
- Location:
- tagbee-automatic-post-tagging
- Files:
-
- 9 added
- 1 edited
-
tags/1.0.7 (added)
-
tags/1.0.7/index.php (added)
-
tags/1.0.7/lib (added)
-
tags/1.0.7/lib/tagbee-auto-proposals-request.php (added)
-
tags/1.0.7/lib/tagbee-client.php (added)
-
tags/1.0.7/lib/tagbee-request-interface.php (added)
-
tags/1.0.7/lib/tagbee-update-tags-request.php (added)
-
tags/1.0.7/readme.txt (added)
-
tags/1.0.7/tagbee-post-tagger.php (added)
-
trunk/tagbee-post-tagger.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tagbee-automatic-post-tagging/trunk/tagbee-post-tagger.php
r2068299 r2070256 4 4 Plugin URI: https://developer.wordpress.org/plugins/the-basics/ 5 5 Description: Add Tags to posts 6 Version: 1.0. 66 Version: 1.0.7 7 7 Author: TagΒee Team 8 8 Author URI: https://tagbee.co … … 28 28 */ 29 29 defined('ABSPATH') or die('Wordpress Plugin'); 30 define('TAGBEE_VERSION', "1.0. 6");30 define('TAGBEE_VERSION', "1.0.7"); 31 31 define("TAGBEE_NAMESPACE", "tagbee"); 32 32 define("TAGBEE_INNER_PROPOSAL_ENDPOINT", "proposals"); … … 56 56 57 57 /** Submit Final Post Info and Save Post Meta */ 58 function tagbee_post_info ( $id, $post ) {58 function tagbee_post_info_callback( $id, $post ) { 59 59 60 60 $id = (int) $id; … … 97 97 } 98 98 99 /** Decide if the this is a rest api request */ 100 function is_api_used() { 101 return defined('REST_REQUEST') && REST_REQUEST; 102 } 103 104 function tagbee_post_info_rest( $post ) { 105 tagbee_post_info_callback($post->ID, $post); 106 } 107 108 function tagbee_post_info( $id, $post ) { 109 110 if (is_api_used()) { 111 add_action('rest_after_insert_post', 'tagbee_post_info_rest', 10, 2); 112 return; 113 } 114 115 tagbee_post_info_callback($id, $post); 116 } 117 99 118 /** Plugin Settings Page */ 100 119 function tagbee_settings_page() { ?>
Note: See TracChangeset
for help on using the changeset viewer.