The Stack Overflow podcast is back! Listen to an interview with our new CEO.
2 The answer was mostly correct but gave the wrong function to remove an action hook in the example. This edit corrects that and makes minor grammer changes for readability.
source | link

The original theme url here ( https://wordpress.org/themes/sornacommerce/ )

The theme working as wordpress hooking ...by using WordPress hooks

You can update followthis file: ( sornacommerce\inc\theme-hooks.php)sornacommerce\inc\theme-hooks.php on line 438 to 493497

otherwiseOtherwise remove the function on the hook like as bellow:

do_actionremove_action( 'sornacommerce_site_footer_block', 'sornacommerce_site_footer_block' );

Then add new function to the same hook like as bellow:

function wpse291732_footer() {
// your function
 }
add_action("sornacommerce_site_footer_block", "wpse291732_footer");

Hope that will be okay !

The original theme url here ( https://wordpress.org/themes/sornacommerce/ )

The theme working as wordpress hooking ...

You can update follow file ( sornacommerce\inc\theme-hooks.php) line 438 to 493

otherwise remove the hook like as bellow

do_action('sornacommerce_site_footer_block');

Then add new hook like as bellow

function wpse291732_footer() {
// your function
 }
add_action("sornacommerce_site_footer_block", "wpse291732_footer");

Hope will be okay !

The original theme url here ( https://wordpress.org/themes/sornacommerce/ )

The theme working by using WordPress hooks

You can update this file: sornacommerce\inc\theme-hooks.php on line 438 to 497

Otherwise remove the function on the hook like bellow:

remove_action( 'sornacommerce_site_footer_block', 'sornacommerce_site_footer_block' );

Then add new function to the same hook like bellow:

function wpse291732_footer() {
// your function
 }
add_action("sornacommerce_site_footer_block", "wpse291732_footer");

Hope that will be okay !

1
source | link

The original theme url here ( https://wordpress.org/themes/sornacommerce/ )

The theme working as wordpress hooking ...

You can update follow file ( sornacommerce\inc\theme-hooks.php) line 438 to 493

otherwise remove the hook like as bellow

do_action('sornacommerce_site_footer_block');

Then add new hook like as bellow

function wpse291732_footer() {
// your function
 }
add_action("sornacommerce_site_footer_block", "wpse291732_footer");

Hope will be okay !