julien-jacob/wp-hooks-lister

Add setting parameter to disable/enable Code example

Closed this issue · 1 comments

Depending to the need of the users, maybe the Code Example section won't be needed.

Having a setting parameter like $disallow_code_example with true or false value will be helpful.

Done in develop branch
Done in next version -> 1.1

Futures settings like :

$wp_hook_lister_settings = array(
	'display'       => array(
		'title'       => true,
		'description' => array(
			'file'       => true,
			'type'       => true,
			'parameters' => true,
		),
		'declaration' => true,
		'example'     => true,
	),
	'exclude_files' => array(
		'wp-hooks-lister.php',
		'.*/vendor/.*',
		'.*/node_modules/.*',
		'.*/deprecated/.*',
	),
);