true, 'strategy' => 'defer', ) ); add_shortcode( self::TAG, array( self::class, 'render' ) ); } /** * Shortcode callback. * * @param array|string $atts Shortcode attributes ('' when none are given). */ public static function render( array|string $atts ): string { $atts = shortcode_atts( array( 'id' => '0' ), is_array( $atts ) ? $atts : array(), self::TAG ); return Renderer::render_by_id( absint( $atts['id'] ) ); } }