Registration of plug-in – function php
-
I am new to WP and trying to register the code as instructed. I inserted the code at the bottom of the function/php and get the following: Parse error: syntax error, unexpected.
I pasted the code as shown below – what am I missing? Am I supposed to insert the code in a specific place?
/**
* This theme was built with PHP, Semantic HTML, CSS, and love.
*/}
if( class_exists( ‘kdMultipleFeaturedImages’ ) ) {$args = array(
‘id’ => ‘featured-image-2’,
‘post_type’ => ‘post’, // Set this to post or page
‘labels’ => array(
‘name’ => ‘Featured image 2’,
‘set’ => ‘Set featured image 2’,
‘remove’ => ‘Remove featured image 2’,
‘use’ => ‘Use as featured image 2’,
)
);new kdMultipleFeaturedImages( $args );
}Thank you
- The topic ‘Registration of plug-in – function php’ is closed to new replies.