OK, so you’re trying to create your own class that is extending the class from plugin. The problem is that the plugin won’t use your class, so you’d have to modify the plugin.
On the other hand, if you take a closer look at that class:
public function display_meta_box($post)
{
$requirements = []; //Array I want to change with my own
$requirements = apply_filters('my_checklist_requirement_list', $requirements, $post) // . <--- Array I want to change with my own
}
you’ll see, that there is my_checklist_requirement_list
filter in there and you can use it.
So all you need to do is to put this in your functions.php:
add_filter( 'my_checklist_requirement_list', function( $requirements, $post ) {
$requirements = array( ... );
return $requirements;
}, 10, 2 );
Related Posts:
- Best collection of code for your 'functions.php' file [closed]
- Shared functionality in plugins and themes
- Remote upload file to server B
- WooCommerce create new product and add to cart on form submit
- Post source link plugin – small modification
- Modifying Footnote Plugin for Descriptive Title Attributes
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Debugging Technique Question re: functions.php
- Override the filter from plugin in child theme
- Edit Yoast SEO breadcrumbs output [closed]
- Calling an attribute from a plugin shortcode
- Redirect to another page using contact form 7? [closed]
- Plugin Development – Functions or Hooks?
- Change Header (Logo) Based on Login
- how to change wp-admin url using function file
- same user role or copy the user role to be same as the other role
- Call javascript functions from each page
- How to keep plugin (media-sync) running even the tab is closed?
- implement custom roles in custom plugin
- Post source link plugin – small modification
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Adding discount functionality to the cart
- How to assign a specific service to a specific provider based on location
- Precheck fields when I add a new post
- working code, not working – Plugin Dev
- Place content inside the Post Loop
- Conditional required fields for WordPress Contact Form 7
- WordPress: code structure
- How to Add Extra Text In WordPress Title Before Post Publish
- How to disable plugin capability : “create new category”
- Product customizing quiz – quiz adding products to the cart
- is_plugin_active function doesn’t exist
- How to edit a wordpress plugin without break its update process
- Looking for a Table of Contents (TOC) plugin for WordPress
- WordPress Plugin Development In MVC Architecture, How?
- GPL and plugins
- Disable Specific Widgets on Selected Pages of a WordPress Website?
- Create page when plugin is activated
- How to handel multiple checkbox field in the admin settings page with Settings API
- wp_insert_user – how to send verification email before logging in
- How to add users roles dropdown in registration in wordpress
- How to load a new template page according to a particular URL?
- How do you auto-activate plugins from child themes
- How to edit plugin’s html? [closed]
- Can a plugin add to header/footer/body content?
- Override the core function locate_template
- Organising the plugins folder in wordpress
- Trying to count the total number of paragraphs inside a blog article
- Output HTML only on individual post view
- May i Use ShortCode in Template?
- Pass info from functions.php to plugin
- Auto delete WordPress users according to time
- add_query_arg not working
- Inserting HTML tag with ACF into shortcode
- How to show Recent Page instead of Post?
- Theme my Login plugin, how to update fields
- How would I go about creating a user ranked post popularity page?
- get current date + 90 days and checking every day
- Overide plugin files from child theme (/inc/ ) folder
- How to create an input field, and base the output on spreadsheet data? [closed]
- Admin style for just one plugin in dashboard
- Add ALT attribute to Pin It Button image to pass HTML5 validation
- How to set Noindex to all wordpress pages in a catergory?
- How do i get file_get_contents to work in wordpress
- Add some fileds to the wp_posts table
- wp_dequeue_script for a Plugin
- Api external with wordpress
- How to create plugin in wordpress [closed]
- How to get rid of Ellipsis on Woocommerce [Essential] Theme [closed]
- Sharing functions between plugins
- Delete data from custom table when deleting a post
- How to customize maintenance mode notification in wordpress?
- Hide fields in woocommerce settings
- How to get current cart values using WC_Shortcodes?
- How to copy the all WordPress media items to another custom plugin folder?
- Adding LOAD MORE on a page
- WordPress default post categories meta box widget
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- Make modification of add_to_cart button specific to single page
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- how can export data in excel file custom plugin
- Cron job shedules replace?
- WP_CRON issue with UTC and local time
- Widget display in theme
- Unexpected plugin_dir_path Output
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- how to repeat taxonomy in different places on wordpress
- how to create table during plugin installation in side a class
- Metabox Data not saving
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Including a PHP file via a function that is part of a plugin?
- Pronamic Info Window
- overwrite a plugin function in functions.php
- From a legal perspective, is it okay to customize a plugin’s code?
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Child Plugin Admin Panel
- Display Video as Post Thumbnail
- Notifications Bar on home page only
- Option value not getting updated until page refresh in WordPress
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)