How to add a function to retrieve data from a social media service

If you want to create your own social button and want to retrieve the number of shares via WordPress you can use the wpbfsb_get_remote_functions filter hook. You can find the filter in the classes/model/remote.php file (see get_remote_functions() function).

How to add a remote function

Crate a new plugin file and use the above mentioned filter hook to add a new function to the list:

Save your file maybe like my-fixed-social-share-remote-function-for-x.php and upload it to the wp-contents/plugins/ folder. Then activate it from the plugin list.

After this, add a new button and choose your just created function from the dropdown list like this.

Remote Function List
Choose the new function from the dropdown list