Archives: Snippets
Test snippet
And this is text but its formatted text, apparently thats ok. Ah, I see – you can switch to straight text like this.Continue reading
Change TikTok purchase Event
add_filter(‘wpcode_pixel_event_name_tiktok’, function( $event_name, $event_key) { // Let’s send CompletePayment instead of PlaceAnOrder for purchase. if ( ‘purchase’ === $event_key ) { return ‘CompletePayment’; } return $event_name; }, 10, 2 );Continue reading
Change TikTok purchase Event
add_filter(‘wpcode_pixel_event_name_tiktok’, function( $event_name, $event_key) { if ( ‘purchase’ === $event_key ) { return ‘CompletePayment’; } return $event_name; }, 10, 2 );Continue reading
Google AdSense
Change “Your Donation” On Donation Form
$fields = add_filter( ‘charitable_donation_form_fields’, ‘example_charitable_donation_form_fields’, 10, 2 ); function example_charitable_donation_form_fields( $fields, $form ) { $fields[‘donation_fields’][‘legend’] = ‘Changing This Title’; return $fields; }Continue reading
Untitled Snippet
wp_enqueue_style( ‘style’, get_stylesheet_uri() ); .wp-block-latest-comments__comment-date { color: var(–wp–preset–color–primary); font-size: var(–wp–preset–font-size–small); } function myfirsttheme_setup() { /* * Load additional block styles. */ $styled_blocks = [‘latest-comments’]; foreach ( $styled_blocks as $block_name ) { $args = array( ‘handle’ => “myfirsttheme-$block_name”, ‘src’ => get_theme_file_uri(…Continue reading
Untitled Snippet
name: Update lists on: schedule: – cron: ‘0 0,12 * * *’ # At 00:00 and 12:00 (midnight and noon) every day workflow_dispatch: # Manual triggering inputs: run-manual: description: ‘Run the script manually’ required: false default: ‘yes’ jobs: build: runs-on:…Continue reading
Untitled Snippet
https://github.com/dontcrash/NRD.gitContinue reading
Untitled Snippet
wordpress $ cd wp-content wp-content $ cd plugins plugins $ mkdir plugin-name plugins $ cd plugin-name plugin-name $ vi plugin-name.phpContinue reading