Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
PUM_Shortcode::__construct( array $args = array() )
Class constructor will set the needed filter and action hooks
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Parameters Parameters
- $args
-
(Optional)
Default value: array()
Source Source
File: classes/Shortcode.php
public function __construct( $args = array() ) { if ( ! did_action( 'init' ) ) { add_action( 'init', array( $this, 'register' ) ); } elseif ( ! did_action( 'admin_head' ) && current_action() != 'init' ) { add_action( 'admin_head', array( $this, 'register' ) ); } else { $this->register(); } }
Expand full source code Collapse full source code View on Trac