c
Size: a a a
c
SM
c
SM
if( ! function_exists( 'custom_login_empty' ) ) {
function custom_login_empty(){
$referrer = $_SERVER['HTTP_REFERER'];
if ( strstr($referrer,'mylogin') && $user==null ) { // mylogin is the name of the loginpage.
if ( !strstr($referrer,'?login=empty') ) { // prevent appending twice
wp_redirect( $referrer . '?login=empty' );
} else {
wp_redirect( $referrer );
}
}
}
}
add_action( 'authenticate', 'custom_login_empty');
IH
ST
ST
SM
SM
ST
SM
ST
ST
Container::make( 'post_meta', __( 'Image Options' ) )
->where( 'post_type', '=', 'attachment' )
->add_fields( [
Field::make( 'textarea', 'crb_text', 'Text Field' )
] );
ST
SM
Container::make( 'post_meta', __( 'Image Options', 'crb' ) )
->where( 'post_type', '=', 'attachment' )
->add_fields( [
Field::make( 'rich_text', 'my_text', 'Text Field' ),
] );
ST
z
A1
c
А