• Hello. Privacy policy URL is empty on multisite WordPress installation. The method get_site_option( 'wp_page_for_privacy_policy' ) returns zero even if privacy policy is configured in the site settings.

    • This topic was modified 2 months, 3 weeks ago by Seriyyy95.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jose

    (@giuse)

    Hi @seriyyy95,

    thank you for reporting this issue.

    Have you tried to change get_site_option to get_option? If it works for you I will do the same and publish a new version of the plugin, because in that case, get_option would surely work also for non-multisites.

    In my opinion, if it still doesn’t work with get_option, this should be fixed by the core because get_site_option( ‘wp_page_for_privacy_policy’ ) should also return the privacy policy page ID on a multisite installation.

    Have a great day!

    Jose


    Thread Starter Seriyyy95

    (@seriyyy95)

    Yeah, the get_option( ‘wp_page_for_privacy_policy’ ) method works. Thanks.

    • This reply was modified 2 months, 3 weeks ago by Seriyyy95.
    Plugin Author Jose

    (@giuse)

    Perfect! Thank you for the confirmation! The development version is already updated. I will publish it after doing some tests.
    You can keep your change until the new version is published.

    Have a great day!

    Jose

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.