Added filter and action hooks.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2ae870407b
commit
2f4218a08b
@ -106,7 +106,7 @@ for ($i=1; $i <= $count; $i++) :
|
|||||||
|
|
||||||
$content = trim($content);
|
$content = trim($content);
|
||||||
|
|
||||||
$content = trim($content);
|
$content = apply_filters('phone_content', $content);
|
||||||
|
|
||||||
$post_title = xmlrpc_getposttitle($content);
|
$post_title = xmlrpc_getposttitle($content);
|
||||||
|
|
||||||
@ -124,7 +124,8 @@ for ($i=1; $i <= $count; $i++) :
|
|||||||
$result = $wpdb->query($sql);
|
$result = $wpdb->query($sql);
|
||||||
$post_ID = $wpdb->insert_id;
|
$post_ID = $wpdb->insert_id;
|
||||||
|
|
||||||
|
do_action('publish_post', $post_ID);
|
||||||
|
do_action('publish_phone', $post_ID);
|
||||||
pingback($content, $post_ID);
|
pingback($content, $post_ID);
|
||||||
|
|
||||||
echo "\n<p><b>Posted title:</b> $post_title<br />";
|
echo "\n<p><b>Posted title:</b> $post_title<br />";
|
||||||
|
Loading…
Reference in New Issue
Block a user