Finally figured it out.
Using the plugin mentioned above (linked here for ease) and the basics of the answer to this question I was able to cobble together this code
It’s a bit hamfisted, I’ll admit that (mainly replacing the preg_match
with strstr
) but it got the job done.
I’m open to any improvements you all can think of so please feel free to comment improvements.
Related Posts:
- Should I use RIPS tool to test my themes and plugins?
- Workflow and best practice for documentation [closed]
- How to get current post user id
- How do I combine a theme with a plugin
- How to write “alt” tag in image for wordpress code?
- Extending a theme: build new features as plugin or core modules?
- How do you create a re-useable HTML fragment in wordpress
- How to override any plugin file in the child theme
- when i activate my WordPress plugin cannot see customizer options or preview
- how to add custom css at top above all css file for specific url
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- Breadcrumb is not generating the correct post page url
- Site is setup statically – how to make it content managable?
- How to escape html code?
- How to make content as required in custom post type?
- What is the correct way for a theme to support plugin UIs?
- How to call “page specific menu items” in template [closed]
- Update Multiple Post Meta for the Same Post In One call?
- Function to activate WordPress theme inside a plugin
- How do I make my wordpress page more friendly for mobile viewers?
- How to load a new template page according to a particular URL?
- Check javascript file Proper way in functions.php
- How to Build a Movie Library in WordPress 3.x
- Display future posts?
- Override the core function locate_template
- Having separate plugins and themes folder for multi-site setup
- How can I get full attachment url from wp_get_attachment_metadata?
- Translating plugin inside the theme [closed]
- unzip a folder on specific location and delete the zip file
- gallery option is not available in media upload box in costum theme option page
- Why are some of my thumbnails not being generated?
- Why is the Settings API is not saving my array of options
- Include Max mega menu Plugin into theme
- How to integrate plugin in WordPress theme
- wordpress theme backend admin only
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- How to use get_theme_mod in gutenberg editor wordpress?
- Reusable functions and tools (Framework)
- Different UI in WordPress
- Display post lists in 2nd paragraph
- Classified ad website : which solutions to use? [closed]
- What are the specifics of WordPress development I need to know? [closed]
- How to create a code editor for my plugin .?
- Finding the URL to be used to check if plugin is installed with a theme
- wp_footer hook only working on homepage not in other pages
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- How to use get_template part in the plugin?
- Redirect to another page using contact form 7? [closed]
- how to force tag page layout to use same as search layout?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Create custom pages with a plugin
- Use different single.php file based on condition
- Release the plugin in the WordPress repository where redux is used
- How to use the CSS of the WordPress core in the development of my administration page?
- How can I use my custom wordpress theme on two websites? [closed]
- why need theme,if page builder is there in wordpress [closed]
- WordPress API functions not working at AJAX functions.php call
- What’s the right way to implement functions in footer.php
- Remember the Meta Value With Radio Buttons
- How to check homepage contain blog post?
- how to design change in woocommerce cart page and all other page also by theme? [closed]
- display unique post per category
- WordPress plugin with its own “site”/theme
- Identify current wordpress theme
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Removing the custom_image_header from wp_head
- Seperate plugin and theme files
- Xamp installed local wordpress not allowing to publish or install plugin
- Scrape key check failed. Please try again
- Elementor Sidebar not loading when PRO elements plugin is active
- Widgets are not displaying in the admin panel
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- woocommerce: Customize email with item total count
- Child theme modifications not showing up
- How can I see $post object in frontend from functions.php?
- Link custom post type to page
- Showing different js file for different theme in wordpress customizer api
- When the user entered an unauthorized url redirect to login page
- Remove action added in plugin class from theme
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Help Code Review – I need to write on .htaccess file from theme’s function.php
- Where do the section input fields values are stored in database
- How to show post attachment image
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- What is the Object for WP_Error Class?
- Active Plugins for current blog in WP Multisite Network? [duplicate]
- Disqus plugin outputs script as literal text
- How to get current template file used by WordPress?
- How can I make a website with dynamic features with wordpress?
- How to generate a responsive output from plugin?
- How to work email subscribe in WordPress?
- How to create post comparison in wordpress
- Javascript as Jquery Function Call?
- Editing a theme
- manage_{taxonomy}_custom_column not working
- How to Enfroce Domain Licensing Limits? [closed]
- add_meta_box showing blank screen in my page
- How to create an Info Box on WordPress [closed]
- What are Seeds? [closed]