-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hide dialog on certain pages #56
Comments
@naloo The $post_ob is the post object, it's an instance of This would go in your functions file yes, and this is the page ID - The cookies should expire, not sure why they're not but I may have to re-visit jQuery Cookie to see what's going on. Unless you're referring to #52 that is. |
hi jay, there is something wrong with the code you provided, like this it works: function maybe_show_dialog( $bool = true, $post_ob = null ) {
} |
sorry, round bracket missing, this is the correct code: `function maybe_show_dialog( $bool = true, $post_ob = null ) {
} |
@naloo you don't need to |
both of them not working for me. |
`/**
if ( $examplePost->ID == 164) { return $bool;
} okay this worked. |
hello, thanks for this great plugin, one question, i need to hide the dialog on cerain pages, i saw the function here: https://github.com/JayWood/content-warning-v3/wiki/Dev-Documentation#hide-the-dialog-on-certain-pages-regardless-of-cookies
do i place this in my functions.php ?
where do i set the page-ids?
and cookies are not expiring, no matter what is set, but i have seen, that people have already reported this.
thanks for your help! nadia
The text was updated successfully, but these errors were encountered: