# countdown-time/1.2.8/includes/HelpPage.php

Countdown Timer Block – build urgency for events and launches, version 1.2.8. 31 lines.

- Page: https://pluginprobe.com/plugins/countdown-time/1.2.8/code/includes/HelpPage.php
- Raw: https://pluginprobe.com/plugins/countdown-time/1.2.8/raw/includes/HelpPage.php
- Modified: 2025-05-05T11:48:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/countdown-time/1.2.8/code/includes/HelpPage.php#L10-L20`.

```php
<?php
class CTBHelpPage{
	public function __construct(){
		add_action( 'admin_menu', [$this, 'adminMenu'] );
		add_action( 'admin_enqueue_scripts', [$this, 'adminEnqueueScripts'] );
	}

	function adminMenu(){
		add_submenu_page(
			'edit.php?post_type=ctb',
			__( 'Countdown - Help', 'countdown-time' ),
			__( 'Help', 'countdown-time' ),
			'manage_options',
			'ctb-help',
			[$this, 'helpPage']
		);
	}

	function helpPage(){ ?>
		<div id='bplAdminHelpPage'></div>
	<?php }

	function adminEnqueueScripts( $hook ) {
		if( strpos( $hook, 'ctb-help' ) ){
			wp_enqueue_style( 'ctb-admin-help', CTB_DIR_URL . 'build/admin-help.css', [], CTB_VERSION );
			wp_enqueue_script( 'ctb-admin-help', CTB_DIR_URL . 'build/admin-help.js', [ 'react', 'react-dom' ], CTB_VERSION );
			wp_set_script_translations( 'ctb-admin-help', 'countdown-time', CTB_DIR_PATH . 'languages' );
		}
	}
}
new CTBHelpPage;
```
