Your IP : 216.73.216.0
<?php
define( 'RSElements__FILE__', __FILE__ );
define( 'RSElements_PLUGIN_BASE', plugin_basename( RSElements__FILE__ ) );
define( 'RSElements_URL', plugins_url( '/', RSElements__FILE__ ) );
define( 'RSElements_PATH', plugin_dir_path( RSElements__FILE__ ) );
define( 'RSElements_ASSETS_URL', RSElements_URL . 'includes/assets/' );
require_once( RSElements_PATH . 'includes/post-type.php' );
require_once( RSElements_PATH . 'includes/settings.php' );
class rtelements_pro_Elementor_Shortcode{
function __construct(){
add_action( 'manage_rtelements_pro_posts_custom_column' , array( $this, 'rtelements_pro_rs_global_templates_columns' ), 10, 2);
add_filter( 'manage_rtelements_pro_posts_columns', array($this,'rtelements_pro_custom_edit_global_templates_posts_columns' ));
}
function rtelements_pro_custom_edit_global_templates_posts_columns($columns) {
$columns['rspro_shortcode_column'] = esc_html__( 'Shortcode', 'rsaddon' );
return $columns;
}
function rtelements_pro_rs_global_templates_columns( $column, $post_id ) {
switch ( $column ) {
case 'rspro_shortcode_column' :
echo '<input type=\'text\' class=\'widefat\' value=\'[SHORTCODE_ELEMENTOR id="'.$post_id.'"]\' readonly="">';
break;
}
}
}
new rtelements_pro_Elementor_Shortcode();