NO -> is not wordpress specific, it is object operator in php.
When you want to call a method of an instance then you call the method with ->
Class SomeClass{
function example(){
return 'This is an example function'
}
}
$obj = new SomeClass();
$obj->example(); // we are calling example function with -> operator
Additional Info: there is one more operator :: which is used to call for static methods of a class.
Related Posts:
- error_log() output for print_r() appearing on page
- Custom plugin: Trying to show saved data on frontend
- Do I require the use of nonce?
- Fatal error: Call to undefined function plugin_dir_path()
- How to make WordPress plugin check for database changes and then do something?
- Retrieve multiple values passed to a single attribute in a shortcode
- Save selected item from dropdown menu in a meta box as a metadata value for a custom post type
- How to use copy() function and paste file in /wp-content/themes directory
- OOP Plugin Development. Including external object
- Authenticating to WordPress, using my own authentication two-factor system
- Use composer to load custom classes [closed]
- wordpress custom endpoint multiple params
- Why when I instantiate wp_error in a validation method my user registration method stops working?
- Create table in database when activating plugin
- allow user to select pages from dropdown in my plugin
- Am I not understanding plugins?
- How to set a custom path, for ajax image upload folder in admin?
- Page Reloads Before AJAX Request Finishes
- Add htaccess rules with insert_with_markers at beginning of htaccess
- custom shortcode will not display the wrapped content
- Insert array data on plugin activation
- Common abstract class for plugins
- Same log message keeps on printing to debug.log file thousand of times
- Adding Default Settings to Theme My Login plugin
- Create onClick Event to Re-load a Widget
- Accessing the database from a plugin outside of action hooks
- Adding subdomain to home_url for “add_menu_page”
- How to select the contents in the text view textrea in wp_editor?
- Hide categories that are not used in the post type
- Automated Cart Update With Alert Box Each Time
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to sanitize any integer input field in wordpress?
- WordPress ajax doesn’t display object method on jQuery .change() function
- filter default query to show just selected level of child pages in wordpress
- How to make my custom widget appear within WordPress widgets? Plugin development
- Adding widgets to my plugin page instead of WordPress dashboard
- How to insert data into database using wp cron job
- I want to add custom add to cart link [closed]
- Execute long and heavy processes
- Access Child Class of Plugin Main Class Instance
- Saving plugin settings – ERROR: options page not found
- class_exists returns different values [closed]
- wp_insert_post: array only. wp_update_post: array|object (?)
- 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?
- Custom meta box values are not getting saved for my custom post type
- Plugin development and composer
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- Validate and Sanitize WP REST API Request using WP JSON Schema?
- Set default Database Storage Engine when creating tables with plugins?
- custom post type with role Vendor
- Can I remove or edit an include() from a function with a filter?
- Call to undefined function error in plugin
- How do I make this Metabox show current DB value?
- Execute Jquery when a specific page in my plugin is loading
- Get category id when SEO URL is turned on
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- Using ACF Relationship field to set post type to draft or published status
- How to extend SelectControl with data from my theme
- Only the first image uploads
- 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
- How can i avoid duplicate same post in wp?
- How do I disable cache for a certain page?
- How to check if plugin update process completed in wordpress?
- How to identify which php file a plugin is using on page load?
- dashboard widget form not submit mails
- using filter and hook inside class
- Priority call methods – PHPMailer->addAddress(NULL)
- How to properly escape in ternary operators – Wp Coding Standards?
- Add Admin Option w/ Anonymous Function
- add menu page in loop menu order
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- How to send logs to plugin owner for a plugin?
- Force CSV download with template_redirect
- Private messaging – Getting and displaying the avatar/url of a message recipient
- How to use foreach and if statement within array of arrays?
- Custom post type single page return to listing page
- WordPress rewrite question
- Using Nonce for my Form
- Create new folder and upload files to custom folder via wp_handle_upload
- How to edit the default database of WordPress [closed]
- SHARING TO FACEBOOK – FROM DYNAMICALLY GENERATED PAGE
- Cookie not created in AJAX request
- How to automatically convert images to WebP on WordPress?
- Check user last login date
- Transate plugin with js & wp_localize_script
- WP Custom tables query
- Import js variables loaded via wp_localize_script() into js module without global scope connection
- Custom taxonomy with page post type – WordPress
- Redirect users by role to custom pages
- Query posts by custom taxonomy slug in WP REST API?
- oneOf JSON Schema validation not properly working for custom post meta value?
- getJSON response to PHP
- Custom plugin with shortcode not working
- wp_register_script – illegal string offset
- How can I modify the html output of a custom post type admin page?
- how to escape alert/window.location.replace with variable
- Translate string in another langage than Locale
- Custom rest fields not loaded in rest api cpt response