Custom Conditions Not Showing in Popup Edit Page
-
Trying to add a custom condition for if the user is logged in.
Here’s what I’ve put in my theme’s functions.phpadd_filter( ‘pum_get_conditions’, ‘pum_user_logged_in_condition’ );
function pum_user_logged_in_condition( $conditions ) {
return array_merge( $conditions, array(
‘user_logged_in’ => array(
‘group’ => __( ‘General’ ),
‘name’ => __( ‘User is Logged In’ ),
‘callback’ => ‘is_user_logged_in’,
),
) );
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Conditions Not Showing in Popup Edit Page’ is closed to new replies.