This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| composer-versions — Compare installed vs latest Composer package versions. | |
| Usage: | |
| composer-versions # defaults: dekode + wpackagist-plugin | |
| composer-versions dekode wpackagist-plugin | |
| composer-versions t2 | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media, | |
| .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right .wp-block-media-text__media { | |
| width: var(--mobile-media--width, 100%) !important; | |
| } | |
| .wp-block-media-text.has-mobile-centered-media .wp-block-media-text__media { | |
| align-items: center; | |
| justify-content: center; | |
| margin-left: auto; | |
| margin-right: auto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # git-b — Interactively create a new branch from origin/stage | |
| # Usage: | |
| # git-b | |
| # Prompts for prefix, suffix (optional), and message. | |
| # Created branch: <prefix>/<suffix>/<message> or <prefix>/<message> | |
| # Names are auto-sanitized to URL-safe lowercase, e.g. "My Feature" → "my-feature" | |
| # | |
| # Flow: | |
| # 1) Check working tree (offer stash if dirty). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * WooCommerce Ajax Handlers | |
| * | |
| * Handles AJAX requests via wp_ajax hook (both admin and front-end events) | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
| /** Frontend AJAX events **************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # wp-require — quickly require WP plugins/themes via wpackagist | |
| # Usage: | |
| # wp-require https://wordpress.org/plugins/onesignal-free-web-push-notifications/ | |
| # wp-require https://pl.wordpress.org/plugins/onesignal-free-web-push-notifications/ "^0.4" | |
| # wp-require https://wordpress.org/themes/twentytwelve/ | |
| # wp-require onesignal-free-web-push-notifications | |
| # wp-require twentytwelve --theme | |
| # wp-require my-cool-plugin "^1.2" --plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: OT Flatsome Ultimate Addons | |
| Plugin URI: https://ninewp.com | |
| Description: OT Flatsome Ultimate Addons | |
| Version: 1.0.0 | |
| Author: thinhbg59 | |
| Text Domain: OT_FL_Ultimate_Addons | |
| Domain Path: /languages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Register multiple post meta fields with default args. | |
| * | |
| * @param string $post_type The post type to register meta for. | |
| * @param array $fields Associative array of meta_key => args. | |
| */ | |
| function register_multiple_post_meta( $post_type, array $fields ) { | |
| $default_args = [ | |
| 'single' => true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace SubmenuAccessibility; | |
| /** | |
| * Add a checkbox to the menu item settings to set it as a button. | |
| * | |
| * @param int $item_id The menu item ID. | |
| * @param object $item The menu item object. | |
| * @param int $depth The depth of the menu item. | |
| * @param object $args The menu arguments. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * WordPress Asset Version Manager | |
| * | |
| * A class to manage asset versioning in WordPress by replacing version strings | |
| * with customizable alternatives like file modification times. | |
| */ | |
| class WP_Asset_Version_Manager { |
NewerOlder