Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

<?php
function registering_ppm_addons_reloaded( $widgets_manager ) {
require_once( __DIR__ . '/addons.php' );
$widgets_manager->register( new \PPM_Slider_Widget() );
$widgets_manager->register( new \PPM_ImageBox_Widget() );
$widgets_manager->register( new \PPM_Testimonials_Widget() );
$widgets_manager->register( new \PPM_RelatedProducts_Widget() );
@raselupm
raselupm / cust.json
Created February 22, 2023 10:00
customizer
"customizations": {
"layout": {
"value": null
},
"titleGraphic": {
"value": null
},
"titleGraphicCategory": {
"value": null
},
[
{
"_id": "6398bedd741c8e001972d49e",
"active": true,
"clearance": {
"cents": 0.0,
"currency_iso": "USD"
},
"created_at": null,
"min_quantity": 1,
@raselupm
raselupm / .htaccess
Created January 4, 2022 07:37
.htaccess for preparedpantry.com/blog
RewriteEngine on
RewriteRule ^(.*)$ https://blog.preparedpantry.com/$1 [R=301,L]
<?php
// official documentation link: https://theeventscalendar.com/knowledgebase/k/using-tribe_get_events/
$events = tribe_get_events( [
'posts_per_page' => 3,
'start_date' => date('Y-m-d')
] );
<?php
/*
Plugin Name: Ajax Taxonomy
Version: 1.0
*/
wp_enqueue_script('jquery');
add_action('wp_ajax_my_prefix_ajax_taxonomy', 'my_prefix_ajax_taxonomy');
add_action('wp_ajax_nopriv_my_prefix_ajax_taxonomy', 'my_prefix_ajax_taxonomy');
function modal_testimonial_btn( $atts, $content = null ) {
extract( shortcode_atts( array(
'form_id' => ''
), $atts ) );
$q = new WP_Query(
array('posts_per_page' => -1, 'post_type' => 'review')
);
<?php
namespace App\Http\Livewire;
use App\Models\State;
use Livewire\Component;
class EditState extends Component
{
<?php
namespace App\Jobs;
use App\Mail\Monitor;
use App\Models\Domain;
use App\Models\Event;
use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
<?php
namespace App\Jobs;
use App\Models\Domain;
use App\Models\Event;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;