Skip to content

friends_reblog

Alex Kirk edited this page Apr 8, 2024 · 9 revisions

Reblogs a post

Auto-generated Example

add_filter(
    'friends_reblog',
    function (
        int $reblog_post_id = null,
        WP_Post $post
    ) {
        // Your code here
        return $reblog_post_id;
    },
    10,
    2
);

Parameters

  • int|null $reblog_post_id The post ID of the reblogged post. Default null.
  • WP_Post $post The post object.

Files

apply_filters( 'friends_reblog', null, $post )
apply_filters( 'friends_reblog', null, $post_id )

Hooks

Clone this wiki locally