PHP code example of wp-forge / wp-plugin-check

1. Go to this page and download the library: Download wp-forge/wp-plugin-check library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wp-forge / wp-plugin-check example snippets




// Plugin headers go here...

 $pagenow;
if ( 'plugins.php' === $pagenow ) {
	$plugin_check = new WP_Forge_Plugin_Check( __FILE__ );

	$plugin_check->min_php_version    = '5.6';
	$plugin_check->min_wp_version     = '5.0';
	$plugin_check->req_php_extensions = array( 'json', 'SimpleXML' );
	
	$plugin_check->check_plugin_