Current File : /var/www/e360ban/wp-content/plugins/toolset-blocks/application/models/shortcode/post/id.php
<?php

/**
 * Class WPV_Shortcode_Post_Id
 *
 * @since 2.5.0
 */
class WPV_Shortcode_Post_Id implements WPV_Shortcode_Interface {

	const SHORTCODE_NAME = 'wpv-post-id';

	/**
	 * @var array
	 */
	private $shortcode_atts = array(
		'item'         => null, // post
		'id'           => null, // synonym for 'item'
		'post_id'      => null // synonym for 'item'
	);

	/**
	 * @var string|null
	 */
	private $user_content;

	/**
	 * @var array
	 */
	private $user_atts;


	/**
	 * @var Toolset_Shortcode_Attr_Interface
	 */
	private $item;

	/**
	 * WPV_Shortcode_Post_Id constructor.
	 *
	 * @param Toolset_Shortcode_Attr_Interface $item
	 */
	public function __construct(
		Toolset_Shortcode_Attr_Interface $item
	) {
		$this->item = $item;
	}

	/**
	* Get the shortcode output value.
	*
	* @param $atts
	* @param $content
	*
	* @return string
	*
	* @since 2.5.0
	*/
	public function get_value( $atts, $content = null ) {
		$this->user_atts    = shortcode_atts( $this->shortcode_atts, $atts );
		$this->user_content = $content;

		if ( ! $item_id = $this->item->get( $this->user_atts ) ) {
			// no valid item
			throw new WPV_Exception_Invalid_Shortcode_Attr_Item();
		}

		$out = '';

		$item = get_post( $item_id );

		if ( null === $item ) {
			return $out;
		}

		// Adjust for WPML support
		// If WPML is enabled, $item_id should contain the right ID for the current post in the current language
		// However, if using the id attribute, we might need to adjust it to the translated post for the given ID
		$out = apply_filters( 'translate_object_id', $item_id, $item->post_type, true, null );

		apply_filters( 'wpv_shortcode_debug', 'wpv-post-id', json_encode( $this->user_atts ), '', 'Data received from cache', $out );

		return $out;
	}


}
Page Not Found
Parece que el enlace que apuntaba aquí no sirve. ¿Quieres probar con una búsqueda?
¡Hola!