Making plugin output customizable

Shortcode with a custom output template: You could try the following shortcode demo: /** * The shortcode [history_timeline] with a custom output template. */ add_shortcode( ‘history_timeline’, function( $atts = array(), $content=”” ) { ob_start(); if ( ” == locate_template( ‘templates/timeline.php’, TRUE ) ) include( plugin_dir_path( __FILE__ ) . ‘templates/timeline.php’ ); $html = ob_get_clean(); return $html; … Read more

How to tell which Plugin is displaying?

It can be less than trivial to match output to a source code responsible in WordPress. The typical cases are following: The output is produced by template file directly. The locating template responsible is often about just searching for full or partial text match. From the other side template files can be identified among all … Read more