/** * Show some info about movies in post view. * * Add a filter on the_content hook to display infos selected in options * about the movie: note, director, overview, actors… * * @since 1.0 * * @param string $content The original post content * * @return string The filtered content containing original content plus movie infos if available, the untouched original content else. */ public static function movie_vintage_content($content = null) { // Naughty PHP 5.3 fix $details = WPMOLY_Movies::movie_details(); $metadata = WPMOLY_Movies::movie_metadata(); $html = $details . $metadata; /** * Filter vintage content * * @param string $html New content: details + metadata * @param string $details Details content * @param string $metadata Metadata content * @param string $content Old content */ $html = apply_filters('wpmoly_movie_vintage_content', $html, $details, $metadata, $content); return $html; }