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: VC Gallery Migrator - NO FATAL ERROR | |
| * Description: SAFE version - replaces [vc_gallery images="20129,20130,20132"...] → [gallery ids="20129,20130,20132"] | |
| * Version: 5.0 - STABLE | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) exit; | |
| add_action( 'admin_menu', 'vc_gallery_safe_menu' ); |
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
| /** | |
| * Plugin Name: VC Single Image Migrator - FULL DEBUG | |
| * Description: Complete debugging + replacement for [vc_single_image image="ID"] | |
| * Version: 5.0 | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) exit; | |
| add_action( 'admin_menu', 'vc_debug_migrator_menu' ); |
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
| function convert_reusable_block_to_regular_block($data, $postarr) { | |
| // Check if it's a new custom post type | |
| if ($data['post_type'] === 'your_custom_post_type' && $data['post_status'] === 'auto-draft') { | |
| $reusable_block_post = get_page_by_title('your_reusable_block_name', OBJECT, 'wp_block'); | |
| // Check if the reusable block exists | |
| if ($reusable_block_post !== null) { | |
| $reusable_block_content = $reusable_block_post->post_content; | |
| // Convert the reusable block into a regular block |
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
| // ==UserScript== | |
| // @name WordPress topic redirect | |
| // @namespace WordPress_topic_redirect | |
| // @description Forces https, adds view=all to topic urls and redirects if needed. | |
| // @version 1 | |
| // @grant none | |
| // @run-at document-start | |
| // @include *://*wordpress.org/support/topic/* | |
| // @include https://wordpress.org/support/plugin/* | |
| // @include https://wordpress.org/support/theme/* |
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
| // ==UserScript== | |
| // @name WordPress.org plugins topic highlighter | |
| // @namespace http://clorith.net/ | |
| // @version 0.1 | |
| // @description Add status highlights to topics for easy overviews. | |
| // @author Clorith | |
| // @match https://wordpress.org/support/* | |
| // @require https://code.jquery.com/jquery-1.11.0.min.js | |
| // @grant none | |
| // ==/UserScript== |
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 | |
| get_header(); | |
| $term = get_queried_object(); | |
| $term_title = single_term_title(); | |
| $term_description = term_description(); | |
| $term_children = get_term_children( $term->term_id, $term->taxonomy ); | |
| $has_children = ! is_wp_error( $term_children ) && ! empty( $term_children ); |
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
| /* Ajustes Generales */ | |
| body { | |
| font-size: 12px; | |
| color: #666; | |
| } | |
| @media screen and (min-width: 1120px) { | |
| .site { | |
| margin-top: 0; | |
| } |
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
| // parent theme: Benevolent | |
| // author: igmoweb | |
| <?php | |
| get_header(); | |
| $term = get_queried_object(); | |
| $term_children = get_term_children( $term->term_id, $term->taxonomy ); | |
| $has_children = ! is_wp_error( $term_children ) && ! empty( $term_children ); |
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 | |
| /** | |
| * The template for displaying archive pages. | |
| * | |
| * @link https://codex.wordpress.org/Template_Hierarchy | |
| * | |
| * @package Benevolent | |
| */ | |
| get_header(); ?> |
NewerOlder