Skip to content
Snippets Groups Projects
Commit 2bfbac19 authored by Mohammad Jangda's avatar Mohammad Jangda
Browse files

Two new filters for XMLRPC Push client

To allow modifying post data before creating or updating.
parent b0764848
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,8 @@ class Syndication_WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements Syndica ...@@ -66,6 +66,8 @@ class Syndication_WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements Syndica
$args['custom_fields'] = $this->_get_custom_fields( $post_ID ); $args['custom_fields'] = $this->_get_custom_fields( $post_ID );
$args = apply_filters( 'syn_xmlrpc_push_new_post_args', $args, $post );
$result = $this->query( $result = $this->query(
'wp.newPost', 'wp.newPost',
'1', '1',
...@@ -104,6 +106,8 @@ class Syndication_WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements Syndica ...@@ -104,6 +106,8 @@ class Syndication_WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements Syndica
$args['custom_fields'] = $this->_get_custom_fields( $post_ID ); $args['custom_fields'] = $this->_get_custom_fields( $post_ID );
$args = apply_filters( 'syn_xmlrpc_push_edit_post_args', $args, $post );
$result = $this->query( $result = $this->query(
'wp.editPost', 'wp.editPost',
'1', '1',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment