PHP code example of calderawp / magic-tags

1. Go to this page and download the library: Download calderawp/magic-tags 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/ */

    

calderawp / magic-tags example snippets


$magic = new \calderawp\filter\magictag();
echo $magic->do_magic_tag('{post:custom_field}');


apply_filters( 'caldera_magic_tag', $filterd_tag, $original_tag );
apply_filters( 'caldera_magic_tag-my_tag', $filterd_tag, $args_array );
echo $magic->do_magic_tag('An example of {my_tag:argument}');