/home/vianto5/hidalgoresidences.mx/wp-content/plugins/code-snippets/php/Integration
Edit: /home/vianto5/hidalgoresidences.mx/wp-content/plugins/code-snippets/php/Integration/Shortcodes.php (12763B)
|null|false $posts List of currently visible posts.
*
* @return array
|null|false Unchanged list of posts.
*/
public function enqueue_highlighting( $posts ) {
if ( empty( $posts ) || get_setting( 'general', 'disable_prism' ) ) {
return $posts;
}
// Loop through the posts, checking for an existing shortcode, short-circuiting if possible.
$found_shortcode_content = null;
foreach ( $posts as $post ) {
if ( false !== stripos( $post->post_content, '[' . self::SOURCE_SHORTCODE ) ||
false !== strpos( $post->post_content, '