Eventually I did this in the function of my plugin where I was loading my game,
$mycredhook = new my_demo_hook_class();
do_action( ‘play_game’, $mycredhook);
Not sure if this is the correct way to go, but it worked.
Related Posts:
- How to add a new product type on woocommerce product types? [closed]
- WordPress hook before inserting post into database
- Making Custom Fields Standard in the Admin UI
- Add custom html to last sub-menu item
- Why isn’t is_home() working correctly?
- Any Hook Called When Post Becomes Published?
- When using the block.getSaveElement hook can you output different markup based on whether or not you are in the edit view or the live page view?
- How to exclude certain widget from showing up on home/front page? [duplicate]
- Print shortcode in custom action hook not where the shortcode is entered
- Disable email field on WooCommerce customer account details
- Schedule cron event from widget
- Customizing the default logout page of WordPress
- Is there a filter hook that I can use to change how taxonomy term names are displayed?
- Edit admin post page
- Viewing checkout page removes fees from mini cart
- How to append custom text to the output of ‘categories widget’?
- WooCommer Product Category Loop – How to change the display order of the rating and price?
- Customize Widget Navigation
- Hook before user is created and make some custom validation
- How to make WordPress search page use a relative path
- How can Use custom input field in functions.php page?
- customer specific email attachment
- Check get_post value after wp-admin login
- How to append the excerpt to the content in the single post page?
- Creating Action Hooks For Automatic File Inclusion
- Customizing the built-in Media Playlist
- Particle.js not loading in WordPress Gutenberg
- Running Gutenberg React in Development Mode
- Is there a blank theme framework compatible with WP 3.0? [closed]
- Plugin SVN & update API – how are plugins identified?
- Check for and enforce unique value in user-entered custom meta field in WP Admin
- Custom Search Query
- Enable / Add Custom Keyboard Shortcuts To Work With WordPress’ HTML Editor
- Removing fields from the Media Uploader/Gallery
- Managing Images for a WordPress Blog: Picasa or Flickr?
- What is causing this error? “Warning: Invalid argument”
- How wp_ajax_nopriv since WordPress 3.1
- Modifying loop on a custom page, strange behaviour
- WordPress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?
- Show post page only if the user has bought a specific product
- custom headers for static home page and posts page
- How to redirect WooCommerce shop URL?
- Best way to implement a thumbnail-based gallery in WordPress?
- Why is my mod_rewrite not working?
- Create simple Cookie Box for WordPress
- How to remove buttons from the WP Editor on the edit post page in the admin area
- Does wordpress prevent non wordpress pages from being allowed on the same domain?
- Different development environments (Mac & Windows)
- WordPress Locale Switching on Accept-Language Header
- How do I call in a category title on a category page in a child theme?
- Include custom JS without child theme
- WordPress media uploader – upload tabs not hiding
- how to convert Html block to dynamic widget?
- Is there a way to set the value and text for Select/Radio/Checkbox using More Fields?
- Custom Log In Screen – Disable password recovery [duplicate]
- the_post_thumbnail() returns nothing even though has_post_thumbnail() returns true
- orderby in query_posts
- How to get every custom taxonomy names and urls?
- Instant install of wordpress
- Problem with theme activatation
- How to customize feed?
- Two description meta tags All in One SEO WordPress [closed]
- Create page as a file in my theme?
- Search URL parameters query [duplicate]
- Changing the the_author_posts_link() hover title
- How to display page ids as page slug names?
- How to add custom ‘layout’ buttons to wordpress editor?
- toggle Multiple Loop with tittle
- problem saving/ retrieving custom meta with wp alchemy metabox
- What are some good resources for teaching end-users how to use WordPress?
- How To make Custom page of every Category
- Is it possible to add custom badges to product attributes conditionally, based on custom field?
- Created Custom Block – When I come back to edit post/page and change my block content – Update button stays disabled
- Global theme customization multisite
- How to style bootstrap container in WordPress?
- Floating CTA Image Integration
- Contact form 7 ajax response true/false based on some condtion
- How to add custom classes to a WordPress theme HTML tag?
- Altered Media Library URLs
- generate a static copy of the website footer html
- Multi-site customization
- Query 1 custom post type, each day, alphabetically
- Admin menu disable new/delete page
- Show different pages on site depending on user choice
- Is there a way to limit multi upload in media upload box?
- Change default “Apply Changes To” radio option when editing images
- How to loop through 1 CPT with 2 Taxonomies
- Pulling posts into static site (wordpress as subdirectory)
- If I delete my wordpress site then does that delete all my sites?
- How to support extra color options for shortcodes?
- retrieve theme custom settings
- pull custom fields values from wp-database in a nested foreach loop
- Customise default site setup
- Adding a third custom taxonomies
- Pass query param to custom page
- Custom CSS File wont work on second Page
- How to create a shortcode with HTML code in it and custom parameters/
- responsive screen not working [closed]
- Storing form data into wordpress database [closed]
- Add custom styles to the Raft theme