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 to create an API for my plugin?
- Admin settings update updating every time home page is hit?
- Global Objects and Public Methods
- add_filter OO with parameters
- How Can I Add a Filter to Class Instance Only?
- Does WP fire delete_post when trashed posts are automatically deleted?
- 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
- function triggered by “manage_users_custom_column” filter not working
- How to add a link to WordPress Plugin install Listing
- add_filter and remove_filter added before and after wp_query
- Some nav-menu filters do nothing
- Call activation hook multiple times
- Two-step login process – Is it possible?
- How can I hook into existing WordPress Bulk actions?
- WordPress Media mime type filter problem 4.0
- How to add custom content under plugin row in WordPress admin plugin list?
- Earliest WP Hook to Safely and Reliably Redirect
- Can I differentiate between “Delete Post Permanently” and “Empty Trash” and do something for each accordingly?
- merging an array to an existing array using add_filter
- unable to stop loop when using wp_insert_post with publish_post hook
- Hook into theme-switching later than `setup_theme`
- Is it possible to delay execution of shortcode output callback?
- WordPress Ajax callback function from plugin – OOP
- Why my database table not created on activation?
- Act on user meta updated, but only once
- Is there any way to allow a plugin to write over a previous version?
- How to call function at the bottom of post using plugin?
- Modifying meta tags after doing ajax call in plugin
- how to add custom functionality after woocommerce place order button
- Problems with: manage_${post_type}_posts_columns
- How To Change Logout Screen Title
- Add code inside specific wordpress standard function
- Check for template part, else filter content
- Conditional hook based on the core function that is calling it
- Replace youtube embed in wordpress
- How can I replace content in the WP Admin area before an admin page is rendered?
- How to filter content for specific content variable
- Plugin uninstall function is not working
- Trying to get class to instantiate ONCE (or, “why do I keep punching myself in the head?”)
- Restrict certain actions to plugin-specific admin menu pages only
- Is there an action_filter hook to add content before the post title?
- Adding tables to dashboard pages programmatically?
- Add hook after content without formatting
- How to enhance a self developed plugin by its own plugin architecture
- How to update global variables in plugin activation callback?
- `registration_errors` filter doesn’t seem to be called
- How to grab data after wp user search is complete
- Why does do_action pass a blank string as the first parameter if no $arg is set?
- Hook for validating and rejecting frontend image upload
- remove different admin menu for specific users
- WordPress Reset password Strength set to medium
- Change Front page displays settings conditionally when user is online
- How and when would I implement some code which would take data from one part of the Db and put it in another?
- plugin modal/popup integration best practice
- Get user logged in status from within a plugin. $current_user not defined
- Insert plugin html content to a specific spot in the frontpage
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- Do Not Back Up? Is there any accepted way to tell backup and clone plugins to skip a certain file? [closed]
- 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?
- Problem with inline style CSS properties issue on DIV