-
Notifications
You must be signed in to change notification settings - Fork 16
friends_reblog
Alex Kirk edited this page Nov 22, 2024
·
11 revisions
Reblogs a post
add_filter(
'friends_reblog',
function (
int $reblog_post_id = null,
WP_Post $post,
string $draft
) {
// Your code here
return $reblog_post_id;
},
10,
3
);
-
int|null
$reblog_post_id
The post ID of the reblogged post. Default null. -
WP_Post
$post
The post object. -
string
$draft
apply_filters( 'friends_reblog', null, $post, 'draft' )