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:
- Compare Ajax Data Results
- How to get the total count of Favorite/Favorited authors
- submit form data to wordpress existing database table using my plugin
- Admin login substantially slower on production server
- redirect to a custom page
- How to echo meta_key in easy digital downloads receipt (Purchase Confirmation page)
- Flexslider empty slide
- Plugin error “array_key_exists(): The first argument should be either a string or an integer” [closed]
- Limiting buddy press features based on membership level (PMPro)
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- Conditional Fields depending on checkboxes
- Soflyy WP All Import Custom File Download Issue
- WordPress Admin sub-level menu issue
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Any method to make specific widget for every post and page?
- How to add php plugin code in theme
- WordPress PHP error getting posts from another wordpress blog
- Can i add custom code in Source in specific page, Header from function.php?
- Change pricing in Woocommerce based on Category and Product [closed]
- Creating Admin Submenu Page via Class Method
- how to send two forms with one click (script ninjaforms id)
- .htaccess file doesn’t work, with hundred tries
- register_activation_hook doesn’t fire at all
- Restrict role to use a plugin
- How to change the product short description for each product with PHP?
- I want add repository theme folder
- Cannot pass variable to page definition
- Update (a function) post’s featured image as soon as $image_url changes
- get/show Last ID
- Custom SportsPress list
- Migrating custom php we wrote from functions.php into a site-specific plugin
- What is the correct entry point for capturing coverage data
- Nested DIV’s across functions in PHP, do not seem to work
- Register setting on plugin activation
- Help with customising love it plugin (use within foreach)
- Plugin communication between sites that use it?
- Passing ajax variable to more than one wordpress plugin function
- how change my menu on submenu
- Plugin debugging with errors in activation routine
- My ajax request don´t work and return 0
- Number format in thousands on highcharts in wpdatatable plugin
- WordPress environment not loading properly
- Problem with conditional woocommerce custom checkout field
- How to remove a css class for any wordpress page
- How do I change tab url
- Building a Article Library within WP?
- Form tries to download a file on submit
- Creating wordpress admin page panel [Theme Option]
- Populate select option with JSON file
- “Listen” button on my main post page
- hide load more button if there are no posts left to display
- How to insert image into the Settings Page of a Plugin?
- Adding link for logged in user? [closed]
- WordPress not displaying information on post sent from custom admin form
- adding firstname and lastname on registration
- Plugin question, How to insert a colon in a value box
- Woocommerce attatch files and custom input meta to cart items and then to order
- Tickera missing attendees – No attendees found
- call_user_func_array() expects parameter 1 to be a valid callback, class ‘Automattic\Jetpack\Extensions\Contact_Form\Contact_Form_Block’ not found
- How can I process data in parts to prevent Fatal error: Maximum execution time of 30 seconds exceeded
- PHP is NOT allowed in your code (disabled by your theme or a plugin)
- “Virtual” image in WP Media Library (external URL)
- comments meta box not showing in my plugin post type
- How to add usermeta for existing users when user profile is updated
- wp_head filter not executed inside custom class
- redirect logged users to custom front-end insetad of wp-admin
- How to fetch WordPress Gallery Images to a Custom Post Type?
- Add 2 links in between the navigation using the Breadcrumb Navxt plugin hook
- Remove custom menu pages for admin users
- Custom uploader – Upload files and save link into database
- Implement Google SSO in custom plugin
- Unable to use correctly composer autoload in plugin file
- CPU Overloading due to some hooks
- I have issue to retrive post thumbnail with rest api
- Woocommerce change image based on a single attribute
- Custom block based off core block using filter
- Updating post_parent caused the website to become unresponsive for 40 seconds or more
- How to use s3 bucket images on wordpress media library without plugin
- How to register a template in [NEW] WordPress site editor through a plugin
- Finding plugin that makes this part of page (finding sweetwinsprizes.info virus’s origin)
- Remove H1 title in admin post edit screen
- Fields are not displayed on front end under custom php code in Advanced Custom Fields and Flexible Content field WordPress
- Custom plug-in issues
- Can I send a body using wp_remote_get()?
- How to install and activate a plugin using an external PHP script?
- How prevent STDOUT of Plugin_Upgrader->upgrade(…)?
- Custom Search Function in WordPress Returns No Results
- WordPress Gutenberg Custom Block the viewScript does not get loaded on the frontend when my block is inserted
- Call to undefined function create_function() – PHP 8.2
- can not serialize and insert data from custom form
- Custom plugin translation not working
- PHP Deprecated function Optional parameter $function
- Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1
- White Screen of Death on WordPress Website
- Custom Dynamic Tag in Elementor not showing image
- Parse error : syntax error, unexpected ‘)’ in
- How to customize WP_Error (REST JWT authentication plugin) [closed]
- How can you call to data in google sheet based on ID number?
- Elementor: Exclude product categories when using “Source: Current Query”
- How to resolve Multisite Speed issues