Override defaults 'show_image' => true,
-
Hi Curtiss,
I really like your plugin.I’m trying to hook the ‘post-content-shortcodes-defaults’ in function.php to show post thumbnails by default.
I tried something similar to this:
and changed the code like this:
function.php:
add_filter( ‘post-content-shortcodes-defaults’, ‘custom_pcs_show_thumbnails’ );
function custom_pcs_show_thumbnails( $defaults=array() ) {
$defaults[‘show_image’] = true;
}Everythings is working fine if I change line.62 (‘show_image’ => true,) in the plugin’s file – which is of course absolutely evil.
Any ideas?
Regards,
Patrick
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Override defaults 'show_image' => true,’ is closed to new replies.