# powerkit/2.3.6/modules/post-format-ui/class-powerkit-post-format-ui.php

Powerkit – Supercharge your WordPress Site, version 2.3.6. 54 lines.

- Page: https://pluginprobe.com/plugins/powerkit/2.3.6/code/modules/post-format-ui/class-powerkit-post-format-ui.php
- Raw: https://pluginprobe.com/plugins/powerkit/2.3.6/raw/modules/post-format-ui/class-powerkit-post-format-ui.php
- Modified: 2020-09-19T14:20:04+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/powerkit/2.3.6/code/modules/post-format-ui/class-powerkit-post-format-ui.php#L10-L20`.

```php
<?php
/**
 * Post Format UI
 *
 * @package    Powerkit
 * @subpackage Modules
 */

/**
 * Init module
 */
class Powerkit_Post_Format_UI extends Powerkit_Module {

	/**
	 * Register module
	 */
	public function register() {
		$this->name     = esc_html__( 'Post Format UI', 'powerkit' );
		$this->desc     = null;
		$this->slug     = 'post_format_ui';
		$this->type     = 'default';
		$this->category = 'basic';
		$this->priority = 0;
		$this->public   = false;
		$this->enabled  = true;
	}

	/**
	 * Initialize module
	 */
	public function initialize() {

		/* Load the required dependencies for this module */
		add_action( 'init', array( $this, 'deferred_init' ) );
	}

	/**
	 * Initialize based on theme customization
	 */
	public function deferred_init() {
		if ( get_theme_support( 'powerkit-post-format-ui' ) ) {
			// Helpers Functions for the module.
			require_once dirname( __FILE__ ) . '/helpers/helper-powerkit-post-format-ui.php';

			// Admin and public area.
			require_once dirname( __FILE__ ) . '/admin/class-powerkit-post-format-ui-admin.php';

			new Powerkit_Post_Format_UI_Admin( $this->slug );
		}
	}
}

new Powerkit_Post_Format_UI();

```
