OwlCyberSecurity - MANAGER
Edit File: ovaev-shortcode-location.php
<?php defined( 'ABSPATH' ) || exit; if( !class_exists( 'ovaev_shortcode_location' ) ) { class ovaev_shortcode_location { public $shortcode = 'ovaev_shortcode_location'; public function __construct() { //add shortcode add_shortcode( $this->shortcode, array( $this, 'init_shortcode' ) ); } function init_shortcode( $args, $content = null ) { if ( !empty( $args ) ) { $args = [ 'id' => isset( $args['id'] ) ? (int)$args['id'] : get_the_id(), 'class' => isset( $args['class'] ) ? $args['class'] : '', 'icon' => isset( $args['icon'] ) ? $args['icon'] : 'flaticon flaticon-home', ]; } else { $args = [ 'id' => get_the_id(), 'class' => '', 'icon' => 'flaticon flaticon-home', ]; } $template = apply_filters( 'shortcode_ovaev_title', 'shortcode/ovaev_event_location.php' ); ob_start(); ovaev_get_template( $template, $args ); return ob_get_clean(); } } new ovaev_shortcode_location(); }