-
Notifications
You must be signed in to change notification settings - Fork 1
atmosphere_long_form_strategy_downgraded
github-actions[bot] edited this page Jun 24, 2026
·
16 revisions
Fires when a long-form strategy is silently downgraded to
'link-card' because the post has neither a usable excerpt
nor enough body text to compose a thread hook from.
Purpose is observability — the downgrade is not itself an
error, but ops teams may want to distinguish a fallback
from an intentional 'link-card' configuration.
/**
* Fires when a long-form strategy is silently downgraded to
* `'link-card'` because the post has neither a usable excerpt
* nor enough body text to compose a thread hook from.
*
* Purpose is observability — the downgrade is not itself an
* error, but ops teams may want to distinguish a fallback
* from an intentional `'link-card'` configuration.
*
* @param WP_Post $post
* @param mixed $string_requested_the_strategy_the_filter_returned
* @param string $string_effective_the_strategy_actually_used
*/
function my_atmosphere_long_form_strategy_downgraded_callback( WP_Post $post, $string_requested_the_strategy_the_filter_returned, string $string_effective_the_strategy_actually_used ) {
// Your code here.
}
add_action( 'atmosphere_long_form_strategy_downgraded', 'my_atmosphere_long_form_strategy_downgraded_callback', 10, 3 );-
WP_Post$postThe post being composed. -
$string_requested_the_strategy_the_filter_returnedOther variable names:$strategy -
string$string_effective_the_strategy_actually_usedOther variable names:$link_card
\do_action( 'atmosphere_long_form_strategy_downgraded', $this->object, $strategy, 'link-card' )\do_action( 'atmosphere_long_form_strategy_downgraded', $this->object, $strategy, 'link-card' )\do_action( 'atmosphere_long_form_strategy_downgraded', $this->object, $strategy, 'link-card' )