In your class, your function is called ‘public function setOption()’ not setOptionS . Check your error log for this kind of issues.
Also in your code I don’t see the function ‘socialShareOptions’ actually being called anywhere.
Related Posts:
- Is it possible to create an action hook using do_action() within add_action()?
- Difference Between Filter and Action Hooks?
- Explanation of the “posts_join” and “posts_fields” filter hooks?
- How do you use the plugin boilerplate loader class to hook actions and filters?
- How do I Make a Theme “plugin-ready”?
- How to modify post content before writing to database?
- What’s the difference between hooks, filters and actions? [duplicate]
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Hook for post permalink update
- Dynamically Override Fancy Title
- Get returned variable from a function to add_shortcode function
- Define a function outside a class and call the function using action or filter hook
- Synchronize Custom post type tags to WordPress default posts tags
- Woocommerce – Hide a Column in Cart Table
- WordPress after content Hook & external template part
- Namespaced action and filter tags
- best practice for query string values – get_query_var always empty for my value supplied in query string
- get_current_screen() return null
- Prefixing plugin hooks (actions/filters) with a wrapper class or functions
- WordPress custom taxonomy check box to dropdown
- How to get all queries’s results after they have executed?
- Remove an action by extending class and replacing it
- hook filter after the_content on a specific page
- Bind a function with its own argument to show something dynamically after every content
- Hook add_attachment error
- Call to undefined function is_home() or any conditional tags
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- Update variable value via add_filter
- Configure WordPress to Generate Scheme-less Relative URLs
- How to find list of all functions bind to a particular hook from my plugin?
- apply_filters() and call_user_func() to define and call a function outside a class
- Limit get_next_post to posts from the same author
- Any way, hook to add content right before the “read more” link?
- WordPress Plugin Boilerplate – add actions and/or filters based on user’s role
- How do I replace title with my plugin?
- Apply function on all action hooks?
- Ninja Forms: Front-End Forms, Post ID?
- How many times will this code run? (or, how rich is grandma?)
- How to create an API for my plugin?
- Which hook should be used to add an action containing a redirect?
- add_action hook for completely new post?
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- How can I load a page template from a plugin?
- Add a new tab to WordPress Plugin install Listing
- Changing Plugin Load Order
- Admin settings update updating every time home page is hit?
- WordPress Hook for user register
- Using query_vars filter
- Global Objects and Public Methods
- Using filters and actions for plugin API?
- How should you hook a session_start() when authoring a plugin?
- Init action hook running late after PayPal’s return url?
- Is there widely accepted phpDoc syntax for documenting which hook calls a function?
- How to get Post ID with the Add Filter Function
- Edit plugin without hooks in functions.php
- add_filter OO with parameters
- How Do I Load My Action Earlier Enough?
- How Can I Add a Filter to Class Instance Only?
- Does WP fire delete_post when trashed posts are automatically deleted?
- What’s the earliest point I can get the queried object ID?
- Is it possible to remove next-post / previous-post with out creating a custom template?
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
- WordPress scheduled task is called but not executed
- function triggered by “manage_users_custom_column” filter not working
- Proper way to use apply_filters() with class functions?
- How to add a link to WordPress Plugin install Listing
- add_filter and remove_filter added before and after wp_query
- Actions or filters fired when data is saved in a custom table
- Some nav-menu filters do nothing
- I can’t find where a hook is being defined in a plugin – Easy Digital Downloads
- Filter on the_content ignores shortcodes
- Determine which theme location a wp_get_nav_menu_items is for
- Call activation hook multiple times
- How do I handle multiple Submit buttons in plugin’s option page?
- How to change wordpress post title?
- Display only certain posts based on visitor’s country?
- Conditional add_filter?
- Two-step login process – Is it possible?
- How to check if certain plugin exists and in expected version
- Plugin development, hooks, generate content
- How can I hook into existing WordPress Bulk actions?
- Calling apply_filters on non-documented hooks
- Hook event for upload image in the menu
- Help with callback using do_action_ref_array
- Pass A Value From Outside To A Plugin Variable
- Do Not Back Up? Is there any accepted way to tell backup and clone plugins to skip a certain file? [closed]
- Execute callback after REST API request completes + Response is sent
- Custom post type template not loading from plugin
- Custom fields in the billing address section woocommerce
- How to use useSelect to retrieve the currently default fontFamily?
- How to customize password reset message page on success if no error in password reset
- Problem with inline style CSS properties issue on DIV
- Is there a hook for updated image metadata upon using image editor?
- Can I know what changes happened after using native Image Editor?
- Does a wordpress custom plugin is fired by default on php theme ajax request?
- How to run this plugin every time a post is saved?
- Attributes array not saving values
- how to execute a function only when i send an order to trash [closed]
- Are woocommerce_thankyou hook and is_order_received_page() redundant? [closed]