PHP code example of benjaminmedia / wp-bcm-manager

1. Go to this page and download the library: Download benjaminmedia/wp-bcm-manager 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/ */

    

benjaminmedia / wp-bcm-manager example snippets

 php
add_filter('wp_bcm_set_title', function($strTitle) {
	// tamper title
	return $strTitle;
});
 php
add_filter('wp_bcm_set_categories', function($arrCategories) {
	// tamper with categories
	return $arrCategories;
});
 php
add_filter('wp_bcm_set_tags', function($arrTags) {
	// tamper with tags
	return $arrTags;
});
 php
add_filter('wp_bcm_set_content_type', function($strContentType) {
	// tamper content type
	return $strContentType;
});
 php
add_filter('wp_bcm_set_advertorial_type', function($arrTags) {
	// tamper advertorial type
	return $arrTags;
});