Changeset 3146433
- Timestamp:
- 09/04/2024 12:12:23 PM (19 months ago)
- Location:
- sync-post-with-other-site
- Files:
-
- 24 added
- 3 edited
-
tags/1.8 (added)
-
tags/1.8/Post Add or Edit Select Website.PNG (added)
-
tags/1.8/Setting page.PNG (added)
-
tags/1.8/SyncPostWithOtherSite.php (added)
-
tags/1.8/SyncPostWithOtherSite.png (added)
-
tags/1.8/assets (added)
-
tags/1.8/assets/css (added)
-
tags/1.8/assets/css/sps_admin_style.css (added)
-
tags/1.8/assets/css/sps_front_style.css (added)
-
tags/1.8/assets/images (added)
-
tags/1.8/assets/js (added)
-
tags/1.8/assets/js/sps_admin_js.js (added)
-
tags/1.8/assets/js/sps_front_js.js (added)
-
tags/1.8/includes (added)
-
tags/1.8/includes/sps_post_meta.class.php (added)
-
tags/1.8/includes/sps_settings.class.php (added)
-
tags/1.8/includes/sps_settings.view.php (added)
-
tags/1.8/includes/sps_sync.class.php (added)
-
tags/1.8/languages (added)
-
tags/1.8/languages/sps_text_domain-en_US.mo (added)
-
tags/1.8/languages/sps_text_domain-en_US.po (added)
-
tags/1.8/log (added)
-
tags/1.8/log/sps_log.txt (added)
-
tags/1.8/readme.txt (added)
-
trunk/SyncPostWithOtherSite.php (modified) (2 diffs)
-
trunk/includes/sps_sync.class.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sync-post-with-other-site/trunk/SyncPostWithOtherSite.php
r3130114 r3146433 4 4 Plugin URI: https://kp4coder.com/ 5 5 Description: Allows user to sync post with multiple websites. 6 Version: 1. 76 Version: 1.8 7 7 Author: kp4coder 8 8 Author URI: https://kp4coder.com/ … … 52 52 53 53 global $sps_version; 54 $sps_version = '1. 7';54 $sps_version = '1.8'; 55 55 56 56 class SyncPostWithOtherSite { -
sync-post-with-other-site/trunk/includes/sps_sync.class.php
r3128945 r3146433 52 52 53 53 if( !empty( $general_option ) && isset( $general_option['sps_host_name'] ) && !empty( $general_option['sps_host_name'] ) ) { 54 $response = array(); 54 55 foreach ($general_option['sps_host_name'] as $sps_key => $sps_value) { 55 56 … … 73 74 74 75 if( !empty($sps_value) && !empty($matched_role) && in_array($sps_value, $sps_website) ) { 75 return $this->sps_remote_post( $action, $args ); 76 } 77 } 76 $response[$sps_key] = $this->sps_remote_post( $action, $args ); 77 } 78 } 79 return $response; 78 80 } 79 81 } … … 81 83 function sps_remote_post( $action, $args = array() ) { 82 84 do_action( 'spsp_before_send_data', $args ); 85 $args = apply_filters( 'spsp_before_send_data_args', $args ); 83 86 $args['sps_action'] = $action; 84 87 $url = $args['sps']['host_name']."/wp-json/sps/v1/data"; … … 224 227 'width' => true, 225 228 ); 229 230 $tags= apply_filters( 'sps_filter_custom_post_tags', $tags ); 226 231 } 227 232 -
sync-post-with-other-site/trunk/readme.txt
r3130148 r3146433 5 5 Requires at least: 4.5 6 6 Tested up to: 6.6.1 7 Stable tag: 1. 77 Stable tag: 1.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 111 111 * Fix: Security Update of Authorization to Authenticated 112 112 113 = 1.8 - September 04, 2024 = 114 * Fix: Security Update, multiple website sync error solved and add some hooks 113 115 114 116 == Upgrade notice ==
Note: See TracChangeset
for help on using the changeset viewer.