Do I understand problem correctly?
[QR1] -> Scan -> [Claim listing] -> [QR1->QR2 claimed] -> [QR2]
Here what comes to mind
class RenderPage
function gen_qr(is_claimed)
if (is_claimed) return generate_qr2;
else return generate_qr1
function display_page()
$qr_code = gen_qr(get_option('<page_id>_qr'));
// on button click update_option('<page_id>_qr')
It’s a bit schematic, but I think you got the idea.
P.S. Just to clarify. Method display_page()
renders page withrespect to the fact if listing is claimed (whatever that mean :D), it also has button, that sets “listing claimed” tag to database. qr_gen()
generates code that will contain required information based on database option for corresponding page.
Related Posts:
- How can I use WordPress functions in my stylesheet?
- WP showing “warning: call_user_func_array()”, What to do?
- Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
- How can I pass a variable to wp_ajax action?
- How can i change an image’s author?
- Creating search filter through plugin
- WP-Members redirect if member ALREADY logged in
- How to edit/delete single row items in a table on my own menu page
- Displaying Gravity Form data on WordPress page [closed]
- Get a list of galleries from an album in NextGEN Gallery [closed]
- Undefined property: WP_Post_Type::$ID
- Plugin exceeds memory limit
- How to trigger $_GET request within admin plugin page?
- Wp favorite posts get user favorites in profile using buddypress [closed]
- How to ‘clone’ a wp plugin to make small changes
- add mediaelement.js plugins into WordPress video player control bar
- Preferred way of cacheing a value in php
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- Automatically add attributes to woocommerce product?
- Edit Yoast SEO breadcrumbs output [closed]
- Adding a slider captcha to the comment system
- How to put JQuery/Ajax inside shortcode?
- Query all customers/users and check for duplicate information
- WordPress function not being called from jQuery method
- WordPress WPforms customization
- wp_remote_get() returns 403 while file_get_contents() does not
- Where these .js file come to source code?
- WordPress Widget Not Saving Data
- Center and hide overflow of WP toolbar custom links
- How I can internationalize variables within the function _e () __ (), etc?
- How to delete all trashed item in one-go
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- Why can’t I call a (member) function from within a foreach?
- WordPress Related Plugin – only show when related content
- Add Content to Content()
- Are there action hooks for comments?
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- plugin wraps the entire content
- Plugin onclick button activate other plugin
- Show icons or badges under title on product archives/category pages
- PHP if statement with German umlauts [closed]
- Why does this code snippet create a critical error on my site? [closed]
- WordPress custom post type image in RSS
- Convert to shortcode?
- Must use Plugin not updating HTML code in head
- Add logo to admin menu in my plugin
- Get data from wp_posts of mysql in to variables of wordpress-php script
- WordPress plugin won’t create custom tables
- Cannot access empty property error in Advanced Access Manager
- Trying to get property of non-object wordpress error message
- Advertising: Every page refresh counts as 3 ad impressions
- Somehow adding to “Insert Into URL” posts are contradicting each other
- WordPress Cache delete on plugin uninstall
- How to create repeater field manually, without plugin (ACF Pro)?
- Woo-commerce Update price as a Bulk from My offline software export
- How to disable login in iframe which is hosted in same domain?
- Display Author name PHP (Selfmade Plug-IN)
- WordPress Custom Hook with Class method
- Open_basedir errors – But setting basedir to none redults in 502 Bad Gateway
- Display top level parent category as a single product body class (Woocommerce)
- Allow a particular user to access a particular plugin?
- WordPress Standard Fix Errors
- How do I use a plugin’s shortcode attribute value in another function?
- Change the address of the music player if not available
- WordPress hide post from custom post-type on a single page
- update_post_meta is not working for me when I use e.preventDefault for update button
- SimpleXML is not working with xml response from external api
- strtotime not working
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- How To Toggle User_Meta in frontend in a form using PHP
- Change Woo Custom Endpoint Titles from a Plugin
- Change custom rewrite rule when permalink is updated/changed
- No result after wpdb->insert
- Optimized PHP & WordPress settings for speed/performance?
- Speeding up WordPress on a Local Network
- How can I store user preferences in WordPress and retreive them later?
- Any method to make specific widget for every post and page?
- How to add php plugin code in theme
- how change my menu on submenu
- Plugin debugging with errors in activation routine
- Number format in thousands on highcharts in wpdatatable plugin
- Embed Javascript code to registered users only
- Find all strings between an enclosing shortcode
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- W3 Total Cache Can’t Really Detect Things
- Get content or excerpt of top rated votes @GD-Star Rating? [closed]
- How do I add php to all links automatically?
- Vote It Up Plugin – Add ascending numbers to MostVotedAllTime Chart Function
- How to fix vanilla comments extra iframe space
- Plugin use of ajax/jquery depending dropdown
- Meta Box plugin image_advanced not showing up on frontend
- Creating Features List in WordPress Post
- PHP Creating a formula from mysql db values and db stored math operator
- Change page content based on dropdown selection
- How to add custom html to the Media > Attachment Details modal?
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- Fatal error: Uncaught Error: Call to a member function fetch_array() on bool
- I want create woocommerec match products columns
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- How to override plugin function in code snippets WordPress