This file contains 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
:target::before { | |
content: ""; | |
display: block; | |
height: 50px; /* fixed header height*/ | |
margin: -50px 0 0; /* negative fixed header height */ | |
} |
This file contains 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 // no need to use this line. | |
/** | |
* Utility to get information on installed plugins. | |
* | |
* Returns an array of all installed plugins and indicates which are | |
* plugin are active and which are not. Array is keyed by the plugin's | |
* folder/slug.php (which is how WP looks at them) and includes the | |
* name, version, and true/false whether it is active or not. | |
* |
This file contains 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 | |
/** | |
* Create form label. | |
* | |
* @since 3.1.7 | |
* | |
* @param array $args { | |
* @type string $meta_key | |
* @type string $label_text |
This file contains 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 // Don't use this line. | |
/* | |
* Add the script below to wherever you store custom code snippets | |
* in your site, whether that's your child theme's functions.php, | |
* a custom plugin file, or through a code snippet plugin. | |
*/ | |
/** | |
* This function will connect wp_mail to your authenticated |
This file contains 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 is a filter for wp_mail(). It checks the subject | |
* for the presence of a given string (in this case "New | |
* User Registration"), and if that returns true it | |
* sets the "to" address/value. | |
*/ | |
add_filter( 'wp_mail', 'my_wp_mail_filter' ); | |
function my_wp_mail_filter( $args ) { |
This file contains 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 // ignore this line | |
add_filter( 'wpmem_block', 'my_block_function' ); | |
function my_block_function( $block ) { | |
/* | |
* The plugin tests for pages and posts | |
* to be blocked or unblocked based on | |
* the plugin's settings, then tests for | |
* custom field overrides, then sends the |
This file contains 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 | |
function s25_member_loop() { | |
$args = array( | |
'role' => 'member', // the role we're targeting | |
'exclude' => '1', // exclude admin | |
'fields' => 'all_with_meta', | |
'meta_key' => 'last_name', //query on the last_name key | |
'meta_key' => 'first_name', // also the first_name key | |
); | |
$membersquery = new WP_User_Query( $args ); |
This file contains 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 | |
// Now included with write up here: | |
// https://rocketgeek.com/tips-and-tricks/handling-form-layout-when-using-a-builder-plugin/ |
This file contains 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_action( 'wpmem_after_admin_init', 'my_add_custom_wpmembers_email' ); | |
function my_add_custom_wpmembers_email() { | |
// Required arguments for wpmem_add_custom_email() | |
$tag = 'my_unique_msg_tag'; | |
$heading = 'Heading to display input in Emails tab'; | |
$subject_input = 'my_unique_subj_tag'; | |
$message_input = 'my_unique_body_tag'; |