insert_notice( $notice ) ) { //apl_footer_set_review(); } elseif ( $update ) { $apl_notices->update_notice( $notice ); if ( $reset ) { $apl_notices->activate_notice( $notice['slug'] ); //apl_footer_remove_review(); //apl_footer_set_review(); } } } /** * APL Notice - Review Plugin * * @since 0.5 * * @return array */ function apl_notice_review_plugin() { return array( 'slug' => 'apl_review_plugin', 'delay_time' => 1036800, 'message' => __( 'Looks like you\'ve been using Advanced Post List for awhile now, and that\'s awesome! By helping with a 5-star review, it also helps to reach out to more people.', 'advanced-post-list' ), 'target' => 'user', 'screens' => array(), 'action_options' => array( array( 'time' => 0, 'text' => __( 'Yes, absolutely!', 'advanced-post-list' ), 'link' => 'https://wordpress.org/support/plugin/advanced-post-list/reviews?rate=5#new-post', 'dismiss' => false, 'class' => 'apl-notice-actions-left', ), array( 'text' => 'Maybe, give me a Week.', 'time' => 432000, 'dismiss' => false, 'class' => 'apl-notice-actions-left', ), array( 'time' => 0, 'text' => 'Already did. Dismiss.', 'dismiss' => true, 'class' => 'apl-notice-actions-left', ), ), ); } }