...
How to find the right action, filter or function?
We created for you a handy free guide here which list most of the available actions, filters and main functions:
Woffice developer documentation
Otherwise, you You have access to the woffice source files as it is what you download from Themeforest. Therefore, you can use any code editor to make a global search and look for what you want, you will have to sort all the matches and will probably find the right filter. Otherwise, ask us.
...
The goal will be to change the logo's link from the home page to any custom URL of your choosing:
- Open the dev doc: https://hub.woffice.io/pro/doc, this is the first filter listed: You can use the code below:
You will also find a description of each argument and a description.Code Block apply_filters('woffice_logo_link_to', home_url( '/' ) );
Go to you woffice-child/functions.php file and open it with your favorite code editor, then just add your new filter:
Code Block language php add_filter('woffice_logo_link_to', function($url) { // Make any change here, just return a string which by default is $url which is: home_url( '/' ) return "https://facebook.com"; });
That's a very simple example and does not make a lot of sense. But obviously you can do any kind of PHP process on your side and just use any link.
- Save and upload.
...