Functions
pqi_get_inspiration()
This function returns an array containing the inspiration selected for the current request:
<?php
if ( function_exists( 'pqi_get_inspiration' ) ) {
$inspiration = pqi_get_inspiration();
echo '<pre>' . print_r( $inspiration, true ) . '</pre>';
}
?>
Example result:
Array
(
[url] => https://www.youtube.com/results?search_query=Queen%20-%20Vultan%27s%20Theme%20%28Attack%20of%20the%20Hawk%20Men%29
[title] => Queen - Vultan's Theme (Attack of the Hawk Men)
[html] => <div id="phylax_queen_inspiration"><a href="https://www.youtube.com/results?search_query=Queen%20-%20Vultan%27s%20Theme%20%28Attack%20of%20the%20Hawk%20Men%29" target="_blank" rel="noopener noreferrer" title="Queen - Vultan's Theme (Attack of the Hawk Men)">Queen - Vultan's Theme (Attack of the Hawk Men)</a></div>
)
Filters
pp_queen_inspiration_output
This filter is applied to the plugin output in the WordPress admin area. It is not applied to the value returned by pqi_get_inspiration().