PHP code example of benjaminmedia / wp-datalayer

1. Go to this page and download the library: Download benjaminmedia/wp-datalayer 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-datalayer example snippets

 php
add_filter('wp_set_commercial_type', function() {
	// tamper commercial type
	return $strCommercialType;
});