HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux sa-dev.otherchirps.net 5.15.0-139-generic #149-Ubuntu SMP Fri Apr 11 22:06:13 UTC 2025 x86_64
User: www-data (33)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wp-content/plugins/editorplus/blocks/index.php
<?php

add_action(
	'init',
	function () {

		function ep_register_block_categories( $categories ) {
			return array_merge(
				array(
					array(
						'slug'  => 'ep-editorplus-blocks',
						'title' => 'Editor Plus Blocks',
					),
				),
				$categories
			);
		}
		// "block_categories" filter is deprecated for WP version above 5.8
		if ( version_compare( get_bloginfo( 'version' ), '5.8', '>=' ) ) {
			add_filter( 'block_categories_all', 'ep_register_block_categories' );
		} else {
			add_filter( 'block_categories', 'ep_register_block_categories' );
		}

	}
);

\add_action(
	'init',
	function() {

		wp_register_script(
			'editorplus-progressbar-script',
			plugins_url( '/assets/scripts/progressbar.js', dirname( __FILE__ ) ),
			array(),
			'new',
			true
		);

		wp_register_script(
			'editorplus-toggles-script',
			plugins_url( '/assets/scripts/toggles.js', dirname( __FILE__ ) ),
			array(),
			'new',
			true
		);

		wp_register_script(
			'editorplus-counter-script',
			plugins_url( '/assets/scripts/counter.js', dirname( __FILE__ ) ),
			array(),
			'initail',
			true
		);

		wp_register_script(
			'editorplus-tabs-script',
			plugins_url( '/assets/scripts/tabs.js', dirname( __FILE__ ) ),
			array(),
			'new',
			true
		);

		wp_register_script(
			'editorplus-countdown-script',
			plugins_url( '/assets/scripts/countdown.js', dirname( __FILE__ ) ),
			array( 'jquery' ),
			'new',
			true
		);

		wp_register_script(
			'editorplus-lottie-player-script',
			plugins_url( '/assets/scripts/lottie-player.js', dirname( __FILE__ ) ),
			array( 'jquery' ),
			'latest',
			true
		);

		register_block_type(
			'ep/progress-bar',
			array(
				'script' => ! is_admin() ? 'editorplus-progressbar-script' : '',
			)
		);

		register_block_type(
			'ep/toggles',
			array(
				'script' => ! is_admin() ? 'editorplus-toggles-script' : '',
			)
		);

		register_block_type(
			'ep/counter',
			array(
				'script' => ! is_admin() ? 'editorplus-counter-script' : '',
			)
		);

		register_block_type(
			'ep/tabs',
			array(
				'script' => ! is_admin() ? 'editorplus-tabs-script' : '',
			)
		);

		register_block_type(
			'ep/countdown',
			array(
				'script' => ! is_admin() ? 'editorplus-countdown-script' : '',
			)
		);

		register_block_type(
			'ep/lottie',
			array(
				'script' => ! is_admin() ? 'editorplus-lottie-player-script' : '',
			)
		);
	}
);