How can I get the privacy policy page?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












After the update regarding the GDPR, WordPress now has an option named "Privacy Policy" under the settings, which you can use a page to be used as your privacy policy page.



How can I get the ID or the permalink for this page to use in my theme or plugin?










share|improve this question



























    up vote
    1
    down vote

    favorite












    After the update regarding the GDPR, WordPress now has an option named "Privacy Policy" under the settings, which you can use a page to be used as your privacy policy page.



    How can I get the ID or the permalink for this page to use in my theme or plugin?










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      After the update regarding the GDPR, WordPress now has an option named "Privacy Policy" under the settings, which you can use a page to be used as your privacy policy page.



      How can I get the ID or the permalink for this page to use in my theme or plugin?










      share|improve this question













      After the update regarding the GDPR, WordPress now has an option named "Privacy Policy" under the settings, which you can use a page to be used as your privacy policy page.



      How can I get the ID or the permalink for this page to use in my theme or plugin?







      permalinks privacy gdpr






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      Jack Johansson♦

      10.9k71439




      10.9k71439




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          WordPress stores the page id for the privacy policy page in the options table. To get the value, you can use:



          $privacy_policy_page = get_option( 'wp_page_for_privacy_policy' );

          if( $privacy_policy_page )
          $permalink = esc_url( get_permalink( $privacy_policy_page) );



          The $privacy_policy_page variable holds the ID of the privacy policy page.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "110"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f314371%2fhow-can-i-get-the-privacy-policy-page%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote













            WordPress stores the page id for the privacy policy page in the options table. To get the value, you can use:



            $privacy_policy_page = get_option( 'wp_page_for_privacy_policy' );

            if( $privacy_policy_page )
            $permalink = esc_url( get_permalink( $privacy_policy_page) );



            The $privacy_policy_page variable holds the ID of the privacy policy page.






            share|improve this answer
























              up vote
              2
              down vote













              WordPress stores the page id for the privacy policy page in the options table. To get the value, you can use:



              $privacy_policy_page = get_option( 'wp_page_for_privacy_policy' );

              if( $privacy_policy_page )
              $permalink = esc_url( get_permalink( $privacy_policy_page) );



              The $privacy_policy_page variable holds the ID of the privacy policy page.






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                WordPress stores the page id for the privacy policy page in the options table. To get the value, you can use:



                $privacy_policy_page = get_option( 'wp_page_for_privacy_policy' );

                if( $privacy_policy_page )
                $permalink = esc_url( get_permalink( $privacy_policy_page) );



                The $privacy_policy_page variable holds the ID of the privacy policy page.






                share|improve this answer












                WordPress stores the page id for the privacy policy page in the options table. To get the value, you can use:



                $privacy_policy_page = get_option( 'wp_page_for_privacy_policy' );

                if( $privacy_policy_page )
                $permalink = esc_url( get_permalink( $privacy_policy_page) );



                The $privacy_policy_page variable holds the ID of the privacy policy page.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                Jack Johansson♦

                10.9k71439




                10.9k71439



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fwordpress.stackexchange.com%2fquestions%2f314371%2fhow-can-i-get-the-privacy-policy-page%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                    Confectionery