PHP 8.2.31
Preview: shortcodes.php Size: 2.65 KB
/home/nshryvcy/himaltourism.com/wp-content/plugins/contact-form-7/includes/shortcodes.php

<?php
/**
 * All the functions and classes in this file are deprecated.
 * You should not use them. The functions and classes will be
 * removed in a later version.
 */

function wpcf7_add_shortcode( $tag, $callback, $has_name = false ) {
	wpcf7_deprecated_function( __FUNCTION__, '4.6', 'wpcf7_add_form_tag' );

	return wpcf7_add_form_tag( $tag, $callback, $has_name );
}

function wpcf7_remove_shortcode( $tag ) {
	wpcf7_deprecated_function( __FUNCTION__, '4.6', 'wpcf7_remove_form_tag' );

	return wpcf7_remove_form_tag( $tag );
}

function wpcf7_do_shortcode( $content ) {
	wpcf7_deprecated_function( __FUNCTION__, '4.6',
		'wpcf7_replace_all_form_tags' );

	return wpcf7_replace_all_form_tags( $content );
}

function wpcf7_scan_shortcode( $cond = null ) {
	wpcf7_deprecated_function( __FUNCTION__, '4.6', 'wpcf7_scan_form_tags' );

	return wpcf7_scan_form_tags( $cond );
}

class WPCF7_ShortcodeManager {

	private static $form_tags_manager;

	private function __construct() {}

	public static function get_instance() {
		wpcf7_deprecated_function( __METHOD__, '4.6',
			'WPCF7_FormTagsManager::get_instance' );

		self::$form_tags_manager = WPCF7_FormTagsManager::get_instance();
		return new self;
	}

	public function get_scanned_tags() {
		wpcf7_deprecated_function( __METHOD__, '4.6',
			'WPCF7_FormTagsManager::get_scanned_tags' );

		return self::$form_tags_manager->get_scanned_tags();
	}

	public function add_shortcode( $tag, $callback, $has_name = false ) {
		wpcf7_deprecated_function( __METHOD__, '4.6',
			'WPCF7_FormTagsManager::add' );

		return self::$form_tags_manager->add( $tag, $callback, $has_name );
	}

	public function remove_shortcode( $tag ) {
		wpcf7_deprecated_function( __METHOD__, '4.6',
			'WPCF7_FormTagsManager::remove' );

		return self::$form_tags_manager->remove( $tag );
	}

	public function normalize_shortcode( $content ) {
		wpcf7_deprecated_function( __METHOD__, '4.6',
			'WPCF7_FormTagsManager::normalize' );

		return self::$form_tags_manager->normalize( $content );
	}

	public function do_shortcode( $content, $exec = true ) {
		wpcf7_deprecated_function( __METHOD__, '4.6',
			'WPCF7_FormTagsManager::replace_all' );

		if ( $exec ) {
			return self::$form_tags_manager->replace_all( $content );
		} else {
			return self::$form_tags_manager->scan( $content );
		}
	}

	public function scan_shortcode( $content ) {
		wpcf7_deprecated_function( __METHOD__, '4.6',
			'WPCF7_FormTagsManager::scan' );

		return self::$form_tags_manager->scan( $content );
	}
}

class WPCF7_Shortcode extends WPCF7_FormTag {

	public function __construct( $tag ) {
		wpcf7_deprecated_function( 'WPCF7_Shortcode', '4.6', 'WPCF7_FormTag' );

		parent::__construct( $tag );
	}
}

Directory Contents

Dirs: 4 × Files: 25

Name Size Perms Modified Actions
- drwxr-xr-x 2023-04-04 05:34:36
Edit Download
css DIR
- drwxr-xr-x 2023-04-04 05:34:36
Edit Download
js DIR
- drwxr-xr-x 2023-04-04 05:34:36
Edit Download
swv DIR
- drwxr-xr-x 2023-04-04 05:34:35
Edit Download
834 B lrw-r--r-- 2023-04-04 05:34:35
Edit Download
24.61 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
9.15 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
5.55 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
29.15 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
3.02 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
370 B lrw-r--r-- 2026-02-09 05:50:56
Edit Download
10.11 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
13.16 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
14.22 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
12.09 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
15.37 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
16.31 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
8.73 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
3.37 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
15.01 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
1.87 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
325 B lrw-r--r-- 2023-04-04 05:34:36
Edit Download
12.63 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
2.65 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
6.04 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
21.53 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
2.05 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download
5.27 KB lrw-r--r-- 2023-04-04 05:34:35
Edit Download
3.22 KB lrw-r--r-- 2023-04-04 05:34:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).