I think it’s worth studying how other plugins work, for example: Visual Composer.
The logic that came into my head, is to pick the element selector clicked with jQuery, and work on it. Read this that may help you:
https://stackoverflow.com/questions/5706837/get-unique-selector-of-element-in-jquery
Following this logic, if each page element has the same class, it will be easier to work with
Related Posts:
- Change Password Hint
- Dynamic URL to reference custom PHP files
- Prevent multiple counts by same user – WP PostViews plugin
- How to use a frontend URL with a Plugin
- WordPress template_include filter not working properly
- Theme url in all plugin pages
- “The plugin generated 2694 characters of unexpected output…” on Plugin activation, CREATE TABLE sql command not working
- How to display a value from a radio button in the options menu in wordpress
- How to access function from outside of a class within this class in WP plugin?
- PHP can I add line numbers to file_get_contents()
- How to call function at the bottom of post using plugin?
- WP add_action factory
- Swapping wp_dropdown_categories function with wp_category_checklist
- How to show phpinfo() only in a new tab?
- How can I remove a function that has been added to wordpress with add_filter?
- what is the best practice to add new field to an api route
- Use custom post type for a store locator
- How to use $_GET function WordPress backend
- WP CRON duplicate wp_insert_post with has < and > tag
- How to send Ajax request from my plugin in admin dashboard?
- Extend PHP regex to cover “srcset” and “style” attributes
- AJAX success response is not working but it’s saving my changes
- Best practice for show data to one specific user?
- How can I hide that I Use WordPress (with W3 Total Cache)
- Saving plugin settings – ERROR: options page not found
- class_exists returns different values [closed]
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Asynchronous multiple requests 401 Unauthorized
- Custom array from a query only write the last row of the query
- Using data sent via AJAX in multiple functions on a WP plugin
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- What does -> mean in WordPress?
- Change product_base programmatically
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- How to add the sidebar to all the pages except the home page? [closed]
- Custom meta box values are not getting saved for my custom post type
- WordPress shortcode returns the data before
- Plugin development and composer
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- Set default Database Storage Engine when creating tables with plugins?
- WordPress WP_Query without query GET parameters
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- custom post type with role Vendor
- Removed jQuery script from header.php , any problems?
- Execute Jquery when a specific page in my plugin is loading
- How can I get plugin meta data without knowing the plugin folder?
- Flatten Responses returned via WP REST API via WP_Error for obfuscation
- How does add_option() function enable action hooks to fire right after actiavtion?
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- Create plugin with custom page and template caused an error `Call to undefined function get_header()`
- WordPress can’t use ZipArchive
- Settings API form – submit with AJAX
- How to change basename url for wp-admin?
- Only the first image uploads
- WordPress loading progess – wp-blog-header.php
- Illegal string offset checkbox
- Custom plugin: how do I call a PHP file if settings option is set to true?
- Trying to use a variable to set image width
- wp_update_post gives 500 internal error
- Foreach Loop Of Post Types With Nested If Else If Not Completing Process
- How to identify which php file a plugin is using on page load?
- dashboard widget form not submit mails
- In a foreach loop, how can I add a meta value if it doesn’t exist?
- Looping through and combining calls to Woocommerce REST API
- Should I use wp_cache in my plugin to make it faster?
- register_setting not save checkbox
- How to import woocommerce custom fields data into another site?
- Add a custom link to each image in WordPress gallery
- How to access this jQuery/AJAX data in a PHP file/WordPress plugin
- When I create a new custom post type, it replaces the old post type
- How does one make a URL return dynamic JSON with custom Content Type?
- How to give custom roles the capability to edit one Menu instead of every Menu
- add menu page in loop menu order
- Add .php to end of all WordPress Pages (multisite)
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- PHP get_category() function redeclared
- Getting Member Data From WhishList Member on Register
- Private messaging – Getting and displaying the avatar/url of a message recipient
- I’m writing my first plugin and my echo output is showing up on every page of my wordpress installation
- global $post inside plugin query messes up every new post page in wp-admin
- wp_query (or hook) posts by date (id) in array then set post_type
- Chosen Select jquery Not Working in Plugin
- widget: input the px value from user and use it as inline style in widget function
- PHP calling function within a class
- Custom post type single page return to listing page
- Save data of select list after clicking save
- WordPress rewrite question
- Using Nonce for my Form
- Create new folder and upload files to custom folder via wp_handle_upload
- Issues separating my Plugin pages into different files
- SHARING TO FACEBOOK – FROM DYNAMICALLY GENERATED PAGE
- How to hide Ads From Certain Categories?
- Custom field fetch error on woocommerce pdf invoice
- Login user into magento using wordpress account
- Redirect users by role to custom pages
- getJSON response to PHP
- Custom plugin with shortcode not working
- Customize create table SQL statement in any WordPress plugin
- wp_register_script – illegal string offset
- How can I modify the html output of a custom post type admin page?