• The plugin is great, and I’d like to create a 2nd Gwolle guestbook on my website with different settings (one is unmoderated, the other would be moderated) for different types of guests. How would I do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi Kalital,
    Currently that is not easily possible. I will add a filter so it can be changed at runtime with a bit of code. I will get back about this.

    Plugin Author Marcel Pol

    (@mpol)

    Hi, I did take some time to take a look. This PHP filter should work for your usecase. In this case book_id 2 is not moderated. book_id 1 would simply follow the main setting.
    You can add this PHP code in the functions.php of your theme or in your own plugin. Can you manage?

    function my_gwolle_gb_new_entry_frontend( $entry ) {
    if ( isset( $_POST['gwolle_gb_book_id'] ) ) {
    $book_id = (int) $_POST['gwolle_gb_book_id'];
    }
    if ( $book_id < 1 ) {
    $book_id = 1;
    }
    if ( $book_id == 2 ) {
    $entry->set_ischecked( true );
    }
    return $entry;
    }
    add_filter( 'gwolle_gb_new_entry_frontend', 'my_gwolle_gb_new_entry_frontend');

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create second guest book’ is closed to new replies.