admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'copy-the-code-ask-permission' ), ) ); } /** * Add notice. */ public function admin_notice() { if ( ! current_user_can( 'manage_options' ) ) { return; } $allow = get_option( 'copy_the_code_allow_tracking', 'no' ); if ( 'yes' === $allow ) { return; } $transient = get_transient( 'copy_the_code_ask_again' ); if ( 'no' === $transient ) { return; } ?>