You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use apple_news_notice_message filter to customize skip push messages for posts that are not pushed to apple news, but the filter is never trigged and we always the default message saying "Skipped push of article XXX due to the apple_news_skip_push filter."
I'm using like this:
add_filter('apple_news_notice_message', [__CLASS__, 'filterSkipMessages'], 10, 2);
public static function filterSkipMessages(string $message, string $type): string
{
<Logic to tweak the message here>
return $message
}
Where are you seeing the message? Is it in the post editor or in another area of the admin? If you're using the block editor (Gutenberg) and are seeing this on the post edit screen, I don't believe this filter fires in that context (it's using snackbar notifications via JavaScript instead).
Description
I'm trying to use
apple_news_notice_message
filter to customize skip push messages for posts that are not pushed to apple news, but the filter is never trigged and we always the default message saying "Skipped push of article XXX due to the apple_news_skip_push filter."I'm using like this:
Am I doing something wrong?
Found the filter here: https://github.com/alleyinteractive/apple-news/wiki/Filter:-apple_news_notice_message
The text was updated successfully, but these errors were encountered: