PHP code example of blakewilson / wp-enforce-semver
1. Go to this page and download the library: Download blakewilson/wp-enforce-semver 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/ */
blakewilson / wp-enforce-semver example snippets
// Init autoloader from Composer
if ( file_exists( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php' ) ) {
add_filter( 'semantic_versioning_notice_text', function($notice_text, $plugin_file_name) {
// Modify notice text here.
return $notice_text;
});