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: 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 | |
*/ |
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 | |
add_filter( 'acf/fields/relationship/query/key=field_59006ee8b9a7b', 'bea_acf_relationship', 10, 3 ); | |
add_filter( 'acf/load_value/name=featured_event', 'bea_acf_relationship', 10, 3 ); | |
/** | |
* | |
* Display all events in Relationship field ( future, past ) | |
* | |
* @param $args | |
* @param $field |
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: 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 | |
*/ |
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 | |
/** | |
* @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' ) ) { |
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 | |
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(); |
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 | |
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 ); | |
} |
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: 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 | |
/* |