pluginFile, array( $this, 'activate_plugin' ) ); } public function activate_plugin() { WPUltimatePostGrid::addon( 'custom-templates' )->default_templates( true ); // Reset default templates // Don't show the activation notice if the new user notice is displayed if( get_user_meta( get_current_user_id(), '_wpupg_hide_new_notice', true ) != '' ) { $this->activation_notice(); } } public function activation_notice() { $notice = 'WP Ultimate Post Grid
'; $notice .= 'Check out our latest changes on the Grids > FAQ page'; WPUltimatePostGrid::get()->helper( 'notices' )->add_admin_notice( $notice ); } }