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
/** | |
* Register hero block | |
*/ | |
add_action('acf/init', 'hero'); | |
function hero() { | |
// check function exists | |
if( function_exists('acf_register_block') ) { | |
// register a hero 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
<?php | |
/** | |
* Define CiviCRM Multisite Domain constants and settings. | |
* | |
* When a WordPress site is accessed, CiviCRM needs to know a number of settings | |
* that enable Multisite Domain functionality. Define that data here. | |
* | |
* Once the Domain has been created (e.g. via the form on the "Domains" tab of | |
* the CiviCRM Admin Utilities network settings page) add the corresponding data |
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 | |
/** | |
* This recipe restricts all content of a Custom Post Type (CPT) | |
* to members only. | |
* | |
* This recipe assumes your CPT name is "recipes". | |
* You should replace this with your CPT name for the filter name | |
* and the $my_cpt variable's value in the hook name on line 71, | |
* e.g. pmpro_has_membership_access_filter_cpt-name, | |
* and 74, e.g. $my_cpt = 'cpt-name'. |
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: Suppress Admin Notices | |
* Plugin URI: https://gist.github.com/christianwach/c30d2972d1807ad9a04dff1db971b7cd | |
* Description: Stop that damn nagging! | |
* Version: 1.0.2 | |
* Author: Christian Wach | |
* Author URI: https://haystack.co.uk | |
* | |
* @package CMW_Suppress_Admin_Notices |
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: BP Hide Name Field | |
* Description: Hides the default Name field on BuddyPress Registration form and Profile Edit screens. | |
* Plugin URI: https://gist.github.com/christianwach/06d878edc277ce1ca8a7e59a82052744 | |
* Version: 1.1 | |
* Author: Christian Wach | |
* Author URI: https://github.com/christianwach | |
*/ |
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 | |
/** | |
* ACFE Fix AJAX selectors | |
* | |
* Plugin Name: ACFE Fix AJAX selectors | |
* Description: Fixes AJAX selectors with ACF 6.3.10. Do not deacticate or delete. | |
* Plugin URI: https://haystack.co.uk | |
* Version: 1.0.0 | |
* Author: Christian Wach | |
* Author URI: https://haystack.co.uk |
OlderNewer