View beapi-searchwp.php
<?php | |
/* | |
Plugin Name: Be API - Search WP | |
Plugin URI: http://www.beapi.fr | |
Description: Deactive Search WP on AJAX P2P search query | |
Author: BeAPI | |
Author URI: http://www.beapi.fr | |
Version: 1.0.0 | |
*/ |
View acf-relationship-the-event-calendar.php
<?php | |
add_filter( 'acf/fields/relationship/query/key=field_59006ee8b9a7b', 'bea_acf_relationship' ), 10, 3 ); | |
/** | |
* | |
* Display all events in Relationship field ( future, past ) | |
* | |
* @param $args | |
* @param $field | |
* @param $object_id |
View media-vault-wp-editor.php
<?php | |
/** | |
* Plugin Name: BE API - Media Vault protect media from editor | |
* Description: Allow to protect media uploaded with content editor | |
* Plugin URI: http://www.beapi.fr | |
* Version: 1.0.0 | |
* Author: BeAPI | |
* Author URI: http://www.beapi.fr | |
*/ |
View fix-conflict-js-composer-yoast.php
<?php | |
/** | |
* @source : https://github.com/Yoast/wordpress-seo/issues/6219 | |
**/ | |
add_action( 'vc_backend_editor_render', 'bea_fix_conflict', 9999 ); | |
function bea_fix_conflict() { | |
wp_dequeue_script( 'vc_vendor_yoast_js' ); | |
if ( wp_script_is( 'yoast-seo-post-scraper' ) ) { |
View tools.php
<?php | |
if ( php_sapi_name() !== 'cli' || isset( $_SERVER['REMOTE_ADDR'] ) ) { | |
die( 'CLI Only' ); | |
} | |
// Get first arg | |
if ( ! isset( $argv ) || count( $argv ) < 2 ) { | |
echo "Missing parameters.\n"; | |
echo "script usage: php tools.php [domain]\n"; | |
die(); |
View remove_wp_meta_seo_filter.php
<?php | |
if ( is_admin() && class_exists( 'MetaSeo_Image_List_Table' ) ) { | |
remove_filter( 'image_size_names_choose', array( | |
'MetaSeo_Image_List_Table', | |
'add_more_attachment_sizes_choose' | |
), 10, 1 ); | |
} |
View metaboxes-taxonomy-order.php
<?php | |
/* | |
Plugin Name: Metaboxes taxonomy order | |
Description: Change taxonomy order in admin metabox by name | |
Plugin URI: http://www.beapi.fr | |
Version: 1.0 | |
Author: BeAPI | |
Author URI: http://www.beapi.fr | |
/* |