$message, 'status' => $status ], 30); } /** * acfict_admin_notice_get * * Returns the latest admin notice if there is one * * @date 2020-12-05 * @since 0.3 * * @return string|bool */ function acfict_admin_notice_get() { $key = 'acfict_notice_' . get_current_user_id(); $transient = get_transient( $key ); if ( $transient ) { delete_transient( $key ); } return $transient; } add_action('init', function() { register_post_type('healthcare', [ 'labels' => [ 'name' => 'Plano de Saúde', 'singular_name' => 'Planos de Saúde' ], 'public' => true, 'has_archive' => true, ]); });