Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    I don’t have an open graph image set on my site by any deliberate method, but the same (seemingly random) image keeps getting added to my auto-published FB posts and I want to avoid this. I’d like to display the post on Facebook (without an image), not just simple text. How can I achieve this? I can’t see any options on the plugin to set a preferred image, or no image at all.
    Many thanks.

    Thread Starter Captain Tancredi

    (@skaroth)

    Hi Chad,

    I think I have something (fairly basic) working now as below –

    add_action( 'wpmem_pre_register_data', 'my_reg_hook' );
     
    function my_reg_hook( $fields )
    {
        $pwd  = $fields['password'];
        $pwd2 = $fields['confirm_password'];
    
        if (!preg_match('#[a-zA-Z]+#', $pwd)) {
            $error = 'Password must include at least one letter!';
        }
    
        if (!preg_match('#[0-9]+#', $pwd)) {
            $error = 'Password must include at least one number!';
        }
    
        if (strlen($pwd) < 8) {
            $error = 'Password too short! Must be at least 8 characters.';
        }
    
        if ($pwd2 !== $pwd) {
            $error = 'Passwords do not match!';
        } 
    
        global $wpmem_themsg;
        $wpmem_themsg = $error;
    }
    Thread Starter Captain Tancredi

    (@skaroth)

    Thanks Chad, I’ll have a look into how to do this.

Viewing 3 replies - 1 through 3 (of 3 total)