gpp_popup_title

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Set a custom accessible name for a specific popup
  5. Since

Description

Filter the popup’s human-readable title. This value is used as the popup dialog’s accessible name (aria-label), the iframe element’s title attribute, and the iframe document’s . Use it to provide a descriptive accessible name when the generic default isn’t suitable (e.g., when multiple popups share a page).</p> </div> <div class="hook-usage-patterns lg:mt-16 mt-8"> <h2 class="gw-toc-anchor gw-toc-anchor-usage" id="usage">Usage</h2> <div class="usage-pattern mt-5"> <p>Applied globally</p> <div class="gw-code gw-code-php"> <div class="gw-code-content"><pre style="background-color:transparent;color:#263339" tabindex="0"><code><span class="line"><span style="color:#795da3">add_filter</span><span style="color:#00899e">(</span><span style="color:#00899e"> '</span><span style="color:#183691">gpp_popup_title</span><span style="color:#00899e">'</span><span style="color:#00899e">,</span><span style="color:#00899e"> '</span><span style="color:#183691">my_custom_function</span><span style="color:#00899e">'</span><span style="color:#00899e"> );</span></span></code></pre></div> </div> </div> </div> <div class="hook-parameters lg:mt-16 mt-8"> <h2 class="gw-toc-anchor gw-toc-anchor-parameters" id="parameters">Parameters</h2> <div class="parameters-list my-6 px-10 py-2 bg-white shadow rounded-lg"> <div class="parameter-item my-8"> <div class="parameter-header mb-3 flex items-center flex-wrap gap-3"> <code class="text-lg font-bold px-0 bg-transparent">$title</code> <code class="text-sm bg-purple-75 text-purple-600">string</code> </div> <div class="parameter-description mb-4 text-gray-700 leading-relaxed"> <p>The popup title.</p> </div> </div> <div class="parameter-item my-8"> <div class="parameter-header mb-3 flex items-center flex-wrap gap-3"> <code class="text-lg font-bold px-0 bg-transparent">$feed</code> <code class="text-sm bg-purple-75 text-purple-600">array<string, mixed></code> </div> <div class="parameter-description mb-4 text-gray-700 leading-relaxed"> <p>The feed array.</p> </div> </div> </div> </div> <div class="hook-examples lg:mt-16 mt-8"> <h2 class="gw-toc-anchor gw-toc-anchor-examples" id="examples">Examples</h2> <div class="example lg:mt-8 mt-4"> <h3 class="gw-toc-anchor gw-toc-anchor-set-a-custom-accessible-name-for-a-specific-popup" id="set-a-custom-accessible-name-for-a-specific-popup">Set a custom accessible name for a specific popup</h3> <div class="gw-code gw-code-php" data-snippet-id="snippet-2"> <div class="gw-code-content"><pre style="background-color:transparent;color:#263339" tabindex="0"><code><span class="line"><span style="color:#795da3">add_filter</span><span style="color:#00899e">(</span><span style="color:#00899e"> '</span><span style="color:#183691">gpp_popup_title</span><span style="color:#00899e">'</span><span style="color:#00899e">,</span><span style="color:#a71d5d"> function</span><span style="color:#00899e">(</span><span style="color:#00899e"> $</span><span style="color:#263339">title</span><span style="color:#00899e">,</span><span style="color:#00899e"> $</span><span style="color:#263339">feed</span><span style="color:#00899e"> )</span><span style="color:#00899e"> {</span></span> <span class="line"><span style="color:#00899e"> if</span><span style="color:#00899e"> (</span><span style="color:#00899e"> (</span><span style="color:#a71d5d">int</span><span style="color:#00899e">)</span><span style="color:#00899e"> $</span><span style="color:#263339">feed</span><span style="color:#00899e">[</span><span style="color:#00899e">'</span><span style="color:#183691">id</span><span style="color:#00899e">'</span><span style="color:#00899e">]</span><span style="color:#a71d5d"> ===</span><span style="color:#008651"> 5</span><span style="color:#00899e"> )</span><span style="color:#00899e"> {</span></span> <span class="line"><span style="color:#00899e"> return</span><span style="color:#00899e"> '</span><span style="color:#183691">Age Verification</span><span style="color:#00899e">'</span><span style="color:#00899e">;</span></span> <span class="line"><span style="color:#00899e"> }</span></span> <span class="line"><span style="color:#00899e"> return</span><span style="color:#00899e"> $</span><span style="color:#263339">title</span><span style="color:#00899e">;</span></span> <span class="line"><span style="color:#00899e">},</span><span style="color:#008651"> 10</span><span style="color:#00899e">,</span><span style="color:#008651"> 2</span><span style="color:#00899e"> );</span></span></code></pre></div> </div> </div> </div> <div class="hook-since lg:mt-16 mt-8"> <h2 class="gw-toc-anchor gw-toc-anchor-since" id="since">Since</h2> <ul> <li><p><strong><code>1.0.15</code></strong> Hook added.</p> </li> </ul> </div> </div> <div class="sidebar py-10 lg:py-20"> <h3 class="is-style-h4 mb-7">All Connections</h3> <ul class="space-y-5"> <li> <a class="group flex items-center text-green-900 hover:text-purple-500 text-base font-bold" href="https://gravitywiz.com/documentation/gravity-connect-airtable/"> <span class="list-icon w-6 h-6 stroke-green-900"><svg width="800px" height="800px" viewbox="0 -20.5 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveaspectratio="xMidYMid"> <g> <path d="M114.25873,2.70101695 L18.8604023,42.1756384 C13.5552723,44.3711638 13.6102328,51.9065311 18.9486282,54.0225085 L114.746142,92.0117514 C123.163769,95.3498757 132.537419,95.3498757 140.9536,92.0117514 L236.75256,54.0225085 C242.08951,51.9065311 242.145916,44.3711638 236.83934,42.1756384 L141.442459,2.70101695 C132.738459,-0.900338983 122.961284,-0.900338983 114.25873,2.70101695" fill="#FFBF00"> </path> <path d="M136.349071,112.756863 L136.349071,207.659101 C136.349071,212.173089 140.900664,215.263892 145.096461,213.600615 L251.844122,172.166219 C254.281184,171.200072 255.879376,168.845451 255.879376,166.224705 L255.879376,71.3224678 C255.879376,66.8084791 251.327783,63.7176768 247.131986,65.3809537 L140.384325,106.815349 C137.94871,107.781496 136.349071,110.136118 136.349071,112.756863" fill="#26B5F8"> </path> <path d="M111.422771,117.65355 L79.742409,132.949912 L76.5257763,134.504714 L9.65047684,166.548104 C5.4112904,168.593211 0.000578531073,165.503855 0.000578531073,160.794612 L0.000578531073,71.7210757 C0.000578531073,70.0173017 0.874160452,68.5463864 2.04568588,67.4384994 C2.53454463,66.9481944 3.08848814,66.5446689 3.66412655,66.2250305 C5.26231864,65.2661153 7.54173107,65.0101153 9.47981017,65.7766689 L110.890522,105.957098 C116.045234,108.002206 116.450206,115.225166 111.422771,117.65355" fill="#ED3049"> </path> <path d="M111.422771,117.65355 L79.742409,132.949912 L2.04568588,67.4384994 C2.53454463,66.9481944 3.08848814,66.5446689 3.66412655,66.2250305 C5.26231864,65.2661153 7.54173107,65.0101153 9.47981017,65.7766689 L110.890522,105.957098 C116.045234,108.002206 116.450206,115.225166 111.422771,117.65355" fill-opacity="0.25" fill="#000000"> </path> </g> </svg></span> <span> Airtable</span> </a> </li> <li> <a class="group flex items-center text-green-900 hover:text-purple-500 text-base font-bold" href="https://gravitywiz.com/documentation/gravity-connect-api-alchemist/"> <span class="list-icon w-6 h-6 stroke-green-900"><svg width="144" height="144" viewbox="0 0 144 144" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M54.8213 84.8556C54.8219 76.6311 58.8817 69.3585 65.1045 64.922V42.4747H36.9033V60.3868H53.8311C55.985 60.3868 57.7334 62.1353 57.7334 64.2892C57.7318 66.4418 55.984 68.1857 53.8311 68.1857H36.9033V86.1095L47.0049 86.1505C49.1582 86.1584 50.8966 87.9115 50.8897 90.0646C50.8817 92.2185 49.1295 93.9573 46.9756 93.9493L36.9033 93.9142V102.856C36.9033 106.723 38.4709 110.257 41.0342 112.781L41.0811 112.822C43.6045 115.386 47.1339 116.958 51.001 116.959C58.1494 116.959 64.0589 111.602 64.9639 104.695C58.8193 100.25 54.8213 93.0195 54.8213 84.8556ZM26.6201 34.6759H32.9424C32.9619 34.6756 32.9814 34.6701 33.001 34.67C33.0197 34.67 33.0409 34.6756 33.0596 34.6759H68.9424C68.9619 34.6756 68.9814 34.6701 69.001 34.67C69.0197 34.67 69.0409 34.6756 69.0596 34.6759H75.3877V27.047H26.6201V34.6759ZM62.6201 84.8556C62.6201 91.0925 66.0504 96.522 71.1221 99.381C71.1471 99.3972 71.1736 99.4111 71.1982 99.4279C73.5952 100.762 76.3521 101.531 79.29 101.531C88.4975 101.531 95.9658 94.063 95.9658 84.8556C95.9649 75.649 88.4969 68.1857 79.29 68.1857C76.3538 68.186 73.5943 68.9445 71.1982 70.2775C71.175 70.2934 71.1516 70.3089 71.1279 70.3243C66.0521 73.1818 62.6208 78.6159 62.6201 84.8556ZM103.765 84.8556C103.765 90.2054 102.037 95.1488 99.124 99.1759L118.05 118.102C119.572 119.625 119.573 122.093 118.05 123.615C116.527 125.138 114.059 125.138 112.536 123.615L93.6104 104.69C89.5833 107.602 84.6399 109.33 79.29 109.33C76.8307 109.33 74.4571 108.962 72.2178 108.287C69.7973 117.747 61.2067 124.758 51.001 124.758C44.9958 124.757 39.476 122.313 35.5205 118.295V118.289C31.5302 114.337 29.1045 108.838 29.1045 102.856V42.4747H22.7178C20.5639 42.4747 18.8154 40.7263 18.8154 38.5724V23.1447C18.8154 20.9907 20.5639 19.2423 22.7178 19.2423H79.29C81.4437 19.2426 83.1924 20.9909 83.1924 23.1447V38.5724C83.1924 40.7261 81.4437 42.4744 79.29 42.4747H72.9033V61.2306C74.9395 60.6814 77.0803 60.387 79.29 60.3868C92.8047 60.3868 103.764 71.3412 103.765 84.8556Z" fill="black"/> </svg></span> <span> API Alchemist</span> </a> </li> <li> <a class="group flex items-center text-green-900 hover:text-purple-500 text-base font-bold" href="https://gravitywiz.com/documentation/gravity-connect-drip/"> <span class="list-icon w-6 h-6 stroke-green-900"><svg viewbox="0 0 28 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="36"> <title>Drip Logo Drip

  • Google Calendar
  • Google Sheets
  • MailPoet
  • Notion
  • OpenAI