Skip to content

vanquyet94/basic-auth-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Basic Authentication handler for the JSON API

  • Download the plugin into your plugins directory
  • Enable in the WordPress admin

cURL

curl --user admin:password https://example.com/wp-json/

PHP

$args = array(
	'headers' => array(
		'Authorization' => 'Basic ' . base64_encode( $username . ':' . $password ),
	),
);

About

Basic Authentication handler for the JSON API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages