3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // ============================================================================= // FUNCTIONS.PHP // —————————————————————————– // Overwrite or add your own custom functions to X in this file. // ============================================================================= // ============================================================================= // TABLE OF CONTENTS // —————————————————————————– // 01. Enqueue Parent Stylesheet // 02. Additional Functions // ============================================================================= // Enqueue Parent Stylesheet // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' ); // Additional Functions //add hatom data function add_suf_hatom_data($content) { $t = get_the_modified_time('F jS, Y'); $author = get_the_author(); $title = get_the_title(); if (is_home() || is_singular() || is_archive() ) { $content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>'; } return $content; } add_filter('the_content', 'add_suf_hatom_data');
based on LZoAp
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function add_filter() in /in/WRAc9:19 Stack trace: #0 {main} thrown in /in/WRAc9 on line 19
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Fatal error: Call to undefined function add_filter() in /in/WRAc9 on line 19
Process exited with code 255.