title: Assigning a popup URL to a PHP variable
body: <p>I am trying to bypass a piece of code by replacing the on-click function with simply opening an Elementor popup.</p>
  <p>Can somebody please talk me through this code?</p>
  <pre><code>public function display_delete_action( $post ) {
      if ( $post-&gt;get_status() === 'pending_payment' &amp;&amp; ! empty( $this-&gt;pending_orders[ $post-&gt;get_id() ] ) ) {
          return;
      }
   
  $delete_url = add_query_arg( [
        'action' =&gt; 'delete',
        'post_id' =&gt; $post-&gt;get_id()
      ], wc_get_account_endpoint_url( 'my' ) );
   
      printf(
          '&lt;li class=&quot;cts-post-action-delete&quot;&gt;
              &lt;a href=&quot;%s&quot; class=&quot;post-dashboard-action-delete&quot;&gt;%s&lt;/a&gt;
          &lt;/li&gt;',
          esc_url( wp_nonce_url( $delete_url, 'my_dashboard_actions' ) ),
          __( 'Cancel', 'my' )
      );
  }
  </code></pre>
  <p>I can see that $delete_url is being created using the arguments at the top and then called with the esc_url at the bottom.</p>
  <p>What I cannot figure out is how to replace the URL with:
  &quot;#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjI4NzIzIiwidG9nZ2xlIjpmYWxzZX0%3D&quot;</p>
  <p>I tried:</p>
  <pre><code> $delete_url = &quot;#elementor-action%3Aaction%3Dpopup%3Aopen%26settings%3DeyJpZCI6IjI4NzIzIiwidG9nZ2xlIjpmYWxzZX0%3D&quot;
  </code></pre>
  <p>but to no avail.</p>
  <p>Any help appreciated, thanks.</p>