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( 'gform_pagination_event_category', 'gf_form_category_pagination_category', 10, 4 ); | |
function gf_form_category_pagination_category( $category_name, $form, $source_page_number, $current_page_number ) { | |
return 'Forms'; | |
} | |
add_filter( 'gform_pagination_event_action', 'gf_form_action_pagination_action', 10, 4 ); | |
function gf_form_action_pagination_action( $action_name, $form, $source_page_number, $current_page_number ) { | |
return "Submission"; |
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( 'eum_force_updates_disable_lock', '__return_true' ); |
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 | |
// For User Profile Picture | |
add_filter( 'mpp_gutenberg_user_role', function( $role ) { | |
return 'subscribers'; | |
} ); | |
// For Gutenberg | |
add_filter( 'rest_user_query', function( $args, $r ) { | |
if( isset( $args['who'] ) && 'authors' == $args['who'] ) { | |
$args['who'] = 'subscribers'; |
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
[mediaron_bb_copyright site="My Custom Site" start="2018" copyright_text="Copyright" symbol="©"] |
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
[s3 access_key='30404039292022' secret_key='NQX' bucket='wpajax' expires='3600' file='wordpress-and-ajax_double.pdf.zip']Text Here[/s3] |
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
<body> | |
<?php | |
// Make sure wp_body_open function exists for backwards compatibility | |
if ( function_exists( 'wp_body_open' ) ) { | |
wp_body_open(); | |
} else { | |
do_action( 'body_open' ); | |
} | |
?> | |
<~-- rest of body goes here --> |
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( 'wpseo_exclude_from_sitemap_by_post_ids', 'pmpro_my_account_exclude', 10, 1 ); | |
/** | |
* Exclude page 'my-account' and child pages. | |
* | |
* @param array $excluded_ids The excluded post ids. | |
* @return array Updated exlucded IDs. | |
*/ | |
function pmpro_my_account_exclude( $excluded_ids = array() ) { | |
$maybe_page_ids = wp_cache_get( 'pmpro_exclude_pages' ); |
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
[pmpro_advanced_levels levels="1,2,3" expiration="false" layout="compare_table" compare='Public Forum,1,1,1;WaaSP.Club Group,1,1,1;Private Group & Forum,0,1,1;Vendor Sub-groups,0,1,1;Friendship Connections,0,1,1;Private Messaging,0,1,1;Livestream Events,0,1,1;Knowledgebase,0,1,1;Enhanced Profile,0,1,1;Training Webinars,0,0,1;Private Meeting Room,0,0,1;Technical Guidance,0,0,1;<a href="https://waaspclub.software/">WaaSPClub.Software</a>,0,0,1;Create Blog Articles,0,0,1;Create Landing Pages,0,0,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 | |
function my_pmpro_series_limit_posts_shown( $post_list, $series_object ) { | |
if ( ! is_user_logged_in() ) { | |
return $post_list; | |
} | |
global $current_user; | |
$member_days = pmpro_getMemberDays( $current_user->ID ); | |
$posts_to_display = array(); | |
foreach ( $post_list as $sp ) { | |
$posts_to_display[] = $sp; |
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 | |
function pmpro_lpv_add_my_post_types( $post_types ) { | |
$post_types[] = 'post'; | |
// Add pages to post type array to restrict Limit Post Views. | |
$post_types[] = 'page'; | |
// $post_types[] = 'custom-post-type'; | Example of how you can add more $post_types | |
return $post_types; | |
} |