WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
Filter Usage? (1 post)

  1. Sunrise12
    Member
    Posted 1 year ago #

    I have two questions about the following filter mentioned in the FAQ section:

    function custom_force_ssl( $force_ssl, $post_id = 0, $url = '' ) {
    if ( $post_id == 5 ) {
    $force_ssl = true;
    }
    return $force_ssl;
    }

    add_filter('force_ssl' , 'custom_force_ssl', 10, 3);

    1. What does 10, 3 refer to in the closing add_filter line?

    2. What if you have more than one page that you want to add to the post_id? Can you enter more than one Post ID, separated by commas? Example: if ($post_id == 5, 6, 7)

    Please advise. Thanks.

    http://wordpress.org/extend/plugins/wordpress-https/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.