<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Actions / Filters Archives - WP Software License for WooCommerce</title>
	<atom:link href="https://wpsoftwarelicense.com/documentation_category/actions-filters/feed/" rel="self" type="application/rss+xml" />
	<link>https://wpsoftwarelicense.com/documentation_category/actions-filters/</link>
	<description>An easy and secure way to manage product licensing for WooCommerce</description>
	<lastBuildDate>Thu, 08 Aug 2024 15:39:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>woo_sl/show_extend_button/label</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_sl-show_extend_button-label/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_sl-show_extend_button-label/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Wed, 08 Apr 2020 12:42:44 +0000</pubDate>
				<guid isPermaLink="false">https://woosoftwarelicense.com/?post_type=documentation&#038;p=1239</guid>

					<description><![CDATA[<p>Name woo_sl/show_extend_button/label Type Filter Arguments $label $order_id $order_item_id $new_price $_product_expire_units $_product_expire_time Description Change the Extend Button label Example of usage</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_sl-show_extend_button-label/">woo_sl/show_extend_button/label</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Name</strong><br />
woo_sl/show_extend_button/label</p>
<p><strong>Type</strong><br />
Filter</p>
<p><strong>Arguments</strong><br />
$label<br />
$order_id<br />
$order_item_id<br />
$new_price<br />
$_product_expire_units<br />
$_product_expire_time </p>
<p><strong>Description</strong><br />
Change the Extend Button label</p>
<p><strong>Example of usage<br />
</strong></p>
<pre class="brush: php; title: ; notranslate">
    add_filter('woo_sl/show_extend_button/label', 'custom_show_extend_button_label', 10, 5);
    function custom_show_extend_button_label( $label, $order_id, $order_item_id, $new_price, $_product_expire_units, $_product_expire_time )
        {
            
            $label = 'Extend Product for ' . $new_price;
               
            return $label;   
        }
</pre>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_sl-show_extend_button-label/">woo_sl/show_extend_button/label</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_sl-show_extend_button-label/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>woo_sl/admin/product_fields</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_sladminproduct_fields/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_sladminproduct_fields/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Wed, 30 Aug 2017 09:53:06 +0000</pubDate>
				<guid isPermaLink="false">https://woosoftwarelicense.com/?post_type=documentation&#038;p=656</guid>

					<description><![CDATA[<p>Type Filter Arguments (array) $product_fields Description Add / Remove / Change admin product fields. Example of usage add_filter('woo_sl/admin/product_fields', 'custom_product_fields'); function custom_product_fields( $product_fields ) { foreach($product_fields as $key =&#62; $product_field_data) { if( is_array( $product_field_data ) &#38;&#38; ( !isset($product_field_data&#x5B;'function']) &#124;&#124; $product_field_data&#x5B;'function'] != 'WOO_SL_admin_product::html_license_keys' ) ) { $product_fields&#x5B;$key]&#x5B;'style'] = 'display: none'; } } return $product_fields; }</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_sladminproduct_fields/">woo_sl/admin/product_fields</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Type</strong><br />
Filter</p>
<p><strong>Arguments<br />
</strong>(array) $product_fields</p>
<p><strong>Description</strong><br />
Add / Remove / Change admin product fields.</p>
<p><strong>Example of usage<br />
</strong></p>
<pre class="brush: php; title: ; notranslate">
    add_filter('woo_sl/admin/product_fields', 'custom_product_fields');
    function custom_product_fields( $product_fields )
        {
            
            foreach($product_fields as  $key    =&gt;  $product_field_data)
                {
                    if( is_array( $product_field_data ) &amp;&amp; ( !isset($product_field_data&#x5B;'function']) ||   $product_field_data&#x5B;'function'] !=  'WOO_SL_admin_product::html_license_keys' ) )
                        {   
                            $product_fields&#x5B;$key]&#x5B;'style'] =   'display: none';
                        }     
                    
                }
               
            return $product_fields;   
        }
</pre>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_sladminproduct_fields/">woo_sl/admin/product_fields</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_sladminproduct_fields/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>woo_sl/generate_license_key</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_slgenerate_license_key/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_slgenerate_license_key/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Tue, 01 Aug 2017 13:41:32 +0000</pubDate>
				<guid isPermaLink="false">http://127.0.0.1/sites/woo-software-license/?post_type=documentation&#038;p=597</guid>

					<description><![CDATA[<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slgenerate_license_key/">woo_sl/generate_license_key</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slgenerate_license_key/">woo_sl/generate_license_key</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_slgenerate_license_key/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>woo_sl/before_interface_licence_actions</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_slbefore_interface_licence_actions/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_slbefore_interface_licence_actions/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Wed, 02 Aug 2017 15:05:20 +0000</pubDate>
				<guid isPermaLink="false">https://woosoftwarelicense.com/?post_type=documentation&#038;p=638</guid>

					<description><![CDATA[<p>Trigger before licence interface actions buttons. This send along 1 arguments: $licence_id</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slbefore_interface_licence_actions/">woo_sl/before_interface_licence_actions</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Trigger before licence interface actions buttons. This send along 1 arguments:</p>
<p>$licence_id</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slbefore_interface_licence_actions/">woo_sl/before_interface_licence_actions</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_slbefore_interface_licence_actions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>woo_sl/after_interface_licence_actions</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_slafter_interface_licence_actions/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_slafter_interface_licence_actions/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Wed, 02 Aug 2017 15:05:40 +0000</pubDate>
				<guid isPermaLink="false">https://woosoftwarelicense.com/?post_type=documentation&#038;p=639</guid>

					<description><![CDATA[<p>Trigger after licence interface actions buttons. This send along 1 arguments: $licence_id</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slafter_interface_licence_actions/">woo_sl/after_interface_licence_actions</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Trigger after licence interface actions buttons. This send along 1 arguments:</p>
<p>$licence_id</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slafter_interface_licence_actions/">woo_sl/after_interface_licence_actions</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_slafter_interface_licence_actions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>woo_sl/interface/sl_product_id_select_option</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_slinterfacesl_product_id_select_option/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_slinterfacesl_product_id_select_option/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Wed, 02 Aug 2017 15:11:55 +0000</pubDate>
				<guid isPermaLink="false">https://woosoftwarelicense.com/?post_type=documentation&#038;p=640</guid>

					<description><![CDATA[<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slinterfacesl_product_id_select_option/">woo_sl/interface/sl_product_id_select_option</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slinterfacesl_product_id_select_option/">woo_sl/interface/sl_product_id_select_option</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_slinterfacesl_product_id_select_option/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>woo_sl/interface/license_keys_meta_box/td</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_sl-interface-license_keys_meta_box-td/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_sl-interface-license_keys_meta_box-td/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Thu, 08 Aug 2024 14:45:18 +0000</pubDate>
				<guid isPermaLink="false">https://wpsoftwarelicense.com/?post_type=documentation&#038;p=2157</guid>

					<description><![CDATA[<p>Type Action Arguments int $licence_id array $args Description This filter allows developers to modify the columns displayed in the license details table within the my-licence-manage.php template file. By using this filter, you can append additional columns, remove existing ones, or change the content of the default columns. The default columns include License Key, Status, Domain, [&#8230;]</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_sl-interface-license_keys_meta_box-td/">woo_sl/interface/license_keys_meta_box/td</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Type</strong><br />
Action</p>
<p><strong>Arguments</strong><br />
int $licence_id<br />
array $args</p>
<p><strong>Description</strong><br />
This filter allows developers to modify the columns displayed in the license details table within the my-licence-manage.php template file. By using this filter, you can append additional columns, remove existing ones, or change the content of the default columns. The default columns include License Key, Status, Domain, and Action.</p>
<p><strong>Example of usage</strong><br />
The following example demonstrates how to add a new column called &#8220;Creation Date&#8221; to the license details table, which displays the creation date of each license. Keep in mind you have to add a table &#8220;Creation Date&#8221; header in the my-licence-manage.php template file, as explained in the article <a href="https://wpsoftwarelicense.com/documentation/update-the-license-templates/">Update the License templates</a></p>
<pre class="brush: php; title: ; notranslate">
add_filter('woo_sl/interface/license_keys_meta_box/td', 'theme_add_create_date_column', 10, 3);

function theme_add_create_date_column($licence_id, $args)
{
    // Retrieve the license details using the licence ID.
    $license_data = WOO_SL_functions::get_licence_key_data_by_licence_id($licence_id);

    // Extract the expiration date from the license data, or default to 'N/A' if not set.
    $created_date = isset ( $license_data-&gt;created ) ? $license_data-&gt;created : __('N/A', 'software-license');

    // Build the expiration date column as an HTML &lt;td&gt; element.
    $args&#x5B;'columns']&#x5B;'created_date'] = '&lt;td&gt;' . esc_html( $created_date ) . '&lt;/td&gt;';

    return $args;
}
</pre>
<p>In this example:<br />
&#8211; The filter woo_sl/interface/license_keys_meta_box/td is hooked into a custom function theme_add_expiration_date_column.<br />
&#8211; The $columns array contains all the existing table columns, each defined as an HTML &lt;td&gt; element.<br />
&#8211; The custom function appends a new column to display the license&#8217;s creation date. If no creation date is found, it returns &#8220;N/A&#8221;.<br />
&#8211; The $order_item_id and $license_group_id parameters are used to retrieve the relevant order and license details necessary for extracting the expiration date.</p>
<p>By using this filter, you can easily extend or customize the license details table to include any additional information you wish to display.</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_sl-interface-license_keys_meta_box-td/">woo_sl/interface/license_keys_meta_box/td</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_sl-interface-license_keys_meta_box-td/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>woo_sl/html/max_instances_per_key</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_slhtmlmax_instances_per_key/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_slhtmlmax_instances_per_key/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Tue, 01 Aug 2017 13:51:26 +0000</pubDate>
				<guid isPermaLink="false">http://127.0.0.1/sites/woo-software-license/?post_type=documentation&#038;p=606</guid>

					<description><![CDATA[<p>Type Filter Arguments text $instances integer order_item_id integer $licence_group_id Description Add / Remove / Change &#8216;instances per key&#8217; text. Example of usage An example on how to change the text from ‘7 domains per key’ to ‘7 seats per key’: add_filter('woo_sl/html/max_instances_per_key', 'theme_html_max_instances_per_key', 10, 3); function theme_html_max_instances_per_key($instances, $order_item_id, $licence_group_id) { $order_id = WOO_SL_functions::get_order_by_item_id($order_item_id); $order_licence_details = WOO_SL_functions::get_order_licence_details($order_id); [&#8230;]</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slhtmlmax_instances_per_key/">woo_sl/html/max_instances_per_key</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Type</strong><br />
Filter</p>
<p><strong>Arguments</strong><br />
text $instances<br />
integer order_item_id<br />
integer $licence_group_id</p>
<p><strong>Description</strong><br />
Add / Remove / Change &#8216;instances per key&#8217; text.</p>
<p><strong>Example of usage</strong><br />
An example on how to change the text from ‘7 domains per key’ to ‘7 seats per key’:</p>
<pre class="brush: php; title: ; notranslate">

add_filter('woo_sl/html/max_instances_per_key', 'theme_html_max_instances_per_key', 10, 3);

function theme_html_max_instances_per_key($instances, $order_item_id, $licence_group_id)
{
	$order_id = WOO_SL_functions::get_order_by_item_id($order_item_id);
	$order_licence_details = WOO_SL_functions::get_order_licence_details($order_id);
	$product_licence_data = $order_licence_details&#x5B;$order_item_id]&#x5B;$licence_group_id];
	$max_instances_per_key = $product_licence_data-&gt;license_data&#x5B;'max_instances_per_key'];
	$instances = ' - ' . sprintf(_n('1 seat', '%s seats', $max_instances_per_key, 'software-license') , $max_instances_per_key) . ' per key';
	return $instances;
}

</pre>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slhtmlmax_instances_per_key/">woo_sl/html/max_instances_per_key</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_slhtmlmax_instances_per_key/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>woo_sl/html/manage_keys</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_slhtmlmanage_keys/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_slhtmlmanage_keys/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Wed, 26 Sep 2018 22:18:13 +0000</pubDate>
				<guid isPermaLink="false">https://woosoftwarelicense.com/?post_type=documentation&#038;p=648</guid>

					<description><![CDATA[<p>Type Filter Arguments (string) $text Description Change the default HTML text &#8216;You can manage your keys from My Account&#8217; Example of usage Change the default text to something else add_filter('woo_sl/html/manage_keys', 'custom_html_manage_keys'); function custom_html_manage_keys( $text ) { $text = __('See your account for more keys.', 'software-license'); return $text; }</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slhtmlmanage_keys/">woo_sl/html/manage_keys</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Type</strong><br />
Filter</p>
<p><strong>Arguments<br />
</strong>(string) $text</p>
<p><strong>Description</strong><br />
Change the default HTML text &#8216;You can manage your keys from My Account&#8217;</p>
<p><strong>Example of usage<br />
</strong><br />
Change the default text to something else</p>
<pre class="brush: php; title: ; notranslate">
    add_filter('woo_sl/html/manage_keys', 'custom_html_manage_keys');
    function custom_html_manage_keys( $text )
        {
            
            $text = __('See your account for more keys.', 'software-license');
               
            return $text;   
        }
</pre>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_slhtmlmanage_keys/">woo_sl/html/manage_keys</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_slhtmlmanage_keys/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>woo_sl/html/licensing_details</title>
		<link>https://wpsoftwarelicense.com/documentation/woo_sl-html-licensing_details/</link>
					<comments>https://wpsoftwarelicense.com/documentation/woo_sl-html-licensing_details/#respond</comments>
		
		<dc:creator><![CDATA[woocommerce-sl]]></dc:creator>
		<pubDate>Tue, 28 Nov 2023 18:55:43 +0000</pubDate>
				<guid isPermaLink="false">https://wpsoftwarelicense.com/?post_type=documentation&#038;p=2023</guid>

					<description><![CDATA[<p>Type Filter Arguments (string) $html (int) $order_item_id (object) $order_item (object) $order Description The filter allows you to modify the license information displayed on the front end, specifically at the Order Received page and in the confirmation email. Typically that will show up as follows: Example of usage The following code removes the License Type label. [&#8230;]</p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_sl-html-licensing_details/">woo_sl/html/licensing_details</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Type</strong><br />
Filter</p>
<p><strong>Arguments</strong><br />
(string) $html<br />
(int) $order_item_id<br />
(object) $order_item<br />
(object) $order<br />
<span id="more-2023"></span></p>
<p><strong>Description</strong><br />
The filter allows you to modify the license information displayed on the front end, specifically at the Order Received page and in the confirmation email. Typically that will show up as follows:</p>
<p><img fetchpriority="high" decoding="async" src="https://wpsoftwarelicense.com/wp-content/uploads/2023/11/woosoftwarelicene-order-received-license-informations.png" alt="" width="492" height="429" class="alignnone size-full wp-image-2024" srcset="https://wpsoftwarelicense.com/wp-content/uploads/2023/11/woosoftwarelicene-order-received-license-informations.png 492w, https://wpsoftwarelicense.com/wp-content/uploads/2023/11/woosoftwarelicene-order-received-license-informations-300x262.png 300w" sizes="(max-width: 492px) 100vw, 492px" /></p>
<p><strong>Example of usage</strong><br />
The following code removes the License Type label. </p>
<pre class="brush: php; title: ; notranslate">
    add_filter ( 'woo_sl/html/licensing_details', 'woo_sl_html_licensing_details', 10, 4 );
    function woo_sl_html_licensing_details( $html, $order_item_id, $order_item, $order )
        {
            
            $doc = new DOMDocument();
            $doc-&gt;loadHTML( $html );    
            
            $xpath = new DomXPath( $doc );
            $xpath_results = $xpath-&gt;query(&quot;//p&#x5B;contains(@class, 'woo-sl-label')]&quot;);
    
            if($div = $xpath_results-&gt;item(0)){
                $div-&gt;parentNode-&gt;removeChild( $div );
            } 
            
            $html   = $doc-&gt;saveHTML();
            return $html;
            
        }
</pre>
<p>Utilizing this filter, it is possible to insert additional details.</p>
<pre class="brush: php; title: ; notranslate">
    add_filter ( 'woo_sl/html/licensing_details', 'woo_sl_html_licensing_details', 10, 4 );
    function woo_sl_html_licensing_details( $html, $order_item_id, $order_item, $order )
        {
            
            $doc = new DOMDocument();
            $doc-&gt;loadHTML( $html );    
            
            $template = $doc-&gt;createDocumentFragment();
            $template-&gt;appendXML('&lt;p&gt;This is a new detail&lt;/p&gt;');
            $doc-&gt;appendChild($template);
            
            
            $html   = $doc-&gt;saveHTML();
            return $html;
            
        }
</pre>
<p>The code should be placed inside a custom file on <code>/wp-content/mu-plugins/</code> or a custom plugin. </p>
<p>The post <a href="https://wpsoftwarelicense.com/documentation/woo_sl-html-licensing_details/">woo_sl/html/licensing_details</a> appeared first on <a href="https://wpsoftwarelicense.com">WP Software License for WooCommerce</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wpsoftwarelicense.com/documentation/woo_sl-html-licensing_details/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
