Skip to content

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.

Auto-generated Example

/**
 * 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 );

Parameters

  • WP_Post $post The post being composed.
  • $string_requested_the_strategy_the_filter_returned Other variable names: $strategy
  • string $string_effective_the_strategy_actually_used Other variable names: $link_card

Files

\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' )

← All Hooks

Clone this wiki locally