Skip to content

Instantly share code, notes, and snippets.

Avatar

Vincent Klaiber vinkla

View GitHub Profile
View rest_endpoints.php
<?php
add_filter('rest_endpoints', function ($endpoints) {
$allowedEndpoints = ['/search'];
if (is_user_logged_in()) {
return $endpoints;
}
foreach ($endpoints as $key => $value) {
@vinkla
vinkla / CDN.md
Last active Nov 26, 2020
A guide on how to upload images to GitHub's CDN through issues and pull requests.
View CDN.md

Upload Images to GitHub's CDN

  1. First, visit any repository on GitHub and click your way through to the issues page.

  2. Create a new issue by clicking the New Issue button. You'll now see title and description fields.

  3. Drag-and-drop an image onto the description field. This will start the uploading process.

  4. Copy the URL and use it in README, issues or pull requests however you like on GitHub.

View keybase.md

Keybase proof

I hereby claim:

  • I am vinkla on github.
  • I am vinkla (https://keybase.io/vinkla) on keybase.
  • I have a public key ASBDBuBnmucMB2-Qur4ih8BLTjfzbbfY7U4RdsD9MrzXBwo

To claim this, I am signing this object:

You can’t perform that action at this time.