ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-15 15:12:59
Editing: shortcode.php
Cancel
Save Changes
<?php namespace ElementorPro\Modules\Library\Classes; use Elementor\TemplateLibrary\Source_Local; use ElementorPro\Plugin; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } class Shortcode { const SHORTCODE = 'elementor-template'; public function __construct() { $this->add_actions(); } public function admin_columns_headers( $defaults ) { $defaults['shortcode'] = __( 'Shortcode', 'elementor-pro' ); return $defaults; } public function admin_columns_content( $column_name, $post_id ) { if ( 'shortcode' === $column_name ) { // %s = shortcode, %d = post_id $shortcode = esc_attr( sprintf( '[%s id="%d"]', self::SHORTCODE, $post_id ) ); printf( '<input class="elementor-shortcode-input" type="text" readonly onfocus="this.select()" value="%s" />', $shortcode ); } } public function shortcode( $attributes = [] ) { if ( empty( $attributes['id'] ) ) { return ''; } $include_css = false; if ( isset( $attributes['css'] ) && 'false' !== $attributes['css'] ) { $include_css = (bool) $attributes['css']; } return Plugin::elementor()->frontend->get_builder_content_for_display( $attributes['id'], $include_css ); } private function add_actions() { if ( is_admin() ) { add_action( 'manage_' . Source_Local::CPT . '_posts_columns', [ $this, 'admin_columns_headers' ] ); add_action( 'manage_' . Source_Local::CPT . '_posts_custom_column', [ $this, 'admin_columns_content' ], 10, 2 ); } add_shortcode( self::SHORTCODE, [ $this, 'shortcode' ] ); } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete