Skip to content

Instantly share code, notes, and snippets.

@andrewahead4
andrewahead4 / rest_insert_post.php
Last active August 6, 2024 08:59
A simple post insert using WP REST API and PHP over basic authentication
<?php
///////////////////////////////////////////////////////////////////////////////////
// //
// This is using a sample local WordPress Install and is not production safe //
// It uses the REST and Basic Auth plugins //
// //
///////////////////////////////////////////////////////////////////////////////////
@webdevmatics
webdevmatics / Datatable.php
Created October 11, 2020 18:34
Livewire datatable #livewire
<?php
namespace App\Http\Livewire;
use App\Product;
use Livewire\Component;
use Livewire\WithPagination;
class Datatable extends Component
{
@troccoli
troccoli / CookieConsent.php
Created April 30, 2021 15:09
Cookie consent livewire component
<?php
namespace App\Http\Livewire;
use Livewire\Component;
class CookieConsent extends Component
{
public bool $askForConsent;