Instead of removing all actions as suggested by @kero, you should remove the desired hooks only using remove_action
. Removing all hooks will prevent 3rd party code from adding their code too when removed after they added their stuff (possibly including yours).
To remove a specific hook you should search for the code which registers the action. In this case:
// theme-functions.php:322
add_action( 'education_lms_footer_copyright', 'education_lms_footer_info' );
Then add your own code in your functions.php
to remove the hook:
remove_action( 'education_lms_footer_copyright', 'education_lms_footer_info' );
To add custom code at the copyright position you could use something like:
add_action( 'education_lms_footer_copyright', function () {
echo 'My copyright code';
} );
Sometimes you might need to pass a priority (3rd parameter) if the hook was registered with another than the default of 10
.
Related Posts:
- How to load jQuery in the footer – nothing works for me
- remove_action on after_setup_theme not working from child theme
- How to load scripts/styles specific for a page
- Is there any global functions.php file which works for any theme?
- Child theme – Overriding ‘require_once’ in functions.php
- Display random categories on the front page (Finding and Editing Theme Functions)
- Issue with get_theme_mod returning a blank value instead of the saved value
- Hourly Routine Not Firing ( wp_schedule_event() )
- which is the function that removes accented vowels?
- Theme Demo in live Site
- Customising widget titles/headings in WP 5.8
- How do you completely remove the default header and footer using functions.php?
- Child Theme Not Overriding Parent Theme
- Where does function_exists() look to decide whether a function exists? [closed]
- Add external js file to footer with id
- Theme-Config tab in admin Pannel?
- Move jQuery and Migrate to footer?
- Is It wrong to use oop approach on functions.php?
- PHP files included in functions.php don’t seem to work
- How to remove howdy dropdown menu content
- how to add an image to the footer?
- Hook specific functions if on a specific admin page
- Activate small php condition at footer over page template
- functions.php mistakenly deleted
- wp_register_script(… $in_footer = true) not working
- Echo tags used to describe the theme
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- changing behaviour of get_search_form
- Child Theme files – what is needed?
- Problem only while using require_once() within functions.php
- Translation of theme using child theme
- How to stop twenty fifteen theme from cropping featured images?
- Theme functions.php file auto delete everyday [closed]
- How to remove style attribute in WordPress RSS output?
- WordPress website Rs changed to currency symbol
- Is there an alternative to get_template_directory_uri()?
- create filter in functions.php
- Add Custom Background Properties to Customizer
- Functions in custom theme
- Parse error after modifying the template menu [closed]
- WordPress PHP Conflicting User Sessions
- Function that outputs second theme url
- Copyright info change – Corporate Plus Theme PHP [closed]
- Which function required?
- Not all CSS elements transferring via parent to child?
- unnecessary request call for js and css after calling wp_dequeue_script
- Some questions about how proper add 2 CSS file in a WordPress theme?
- Turn get_posts as string into an array for use in theme admin options
- Filter nav menu items HTML tags and wrap inner text with span
- Insert nofollow in a “Powered By” link, except in the homepage [closed]
- Can’t switch to a child theme using filters template, option_template and option_stylesheet
- Redirect website domain (including all pages) to external URL after Popup message (few seconds)
- Check from functions.php if function exists in footer.php
- Getting the teaser text without overriding global variables
- Default Nav Highlight
- “options.php” not found
- How to override this theme function in child theme
- get_template_directory() – references parent theme directory
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- How do I preserve changes to a theme’s functions.php across updates?
- What function actually renders the wp_admin_bar ? How can I call it?
- Astra theme – cannot set short product description under the product title (product name)
- Header menu aligned right on all pages except for single-post page [closed]
- Class parameter in get_avatar args doesn’t get added to output
- CSS style and app.js not loading
- Setting Up Child Theme To Take Priority
- wp_footer hook causing text to show on bottom of page
- Shortcode Initialization in a Custom Theme
- Getting back a blank WordPress site following functions code edit
- Moving CDN jQuery to footer does not work?
- us states dropdown function and echo in theme template files
- How to pass a variable from a template page to the child theme functions.php
- Random text changing to weird icons in both admin & front end
- Register a widget area when a theme option has been saved?
- How does child theme functions.php work with parent theme functions.php? Is it like CSS? [duplicate]
- Additional Sidebar
- shortcode inside post called by ID does not render as expected
- Add custom css to theme
- Which template file to edit to edit homepage in Mystile [closed]
- Adding function to function.php error 505 [closed]
- How to get postId from the argument $block when register_block_type()?
- My website is generating weired url parameters of paginated pages
- How to automatically load Google Fonts on pages only as they’re used?
- How to use webpack in WordPress theme? I want some scripts to load in the footer, some in the header and some with script parameters
- Override categories with Pages (block theme)
- i recently bought a theme and when i try to activate it says (It appears wp_remote_get() function is disabled in your server. )
- WordPress comment_form() does not display actual comments
- Any adverse effects of adding apply_filters to a function?
- WordPress Categories: Function using custom SQL to return array of specific category IDs
- How can I remove page titles without removing the link in the navigation bar in twentyeleven?
- Problem with WordPress output text (‘esc_html’ & ‘wp_richedit_pre’)
- How to apply the ‘current_page_item’ class to an archive page in `wp_list_pages()`?
- Conditional custom menu?
- Facebook OpenGraph error, Call to undefined function wp_get_attachment_src()
- wp_enqueue_script() not working
- Simplest Way to Build Custom Archives Page?
- Filter for replacing the WP_query object for a given category
- Custom user role still showing up after deletion, ideas?
- Do I Need to Prefix Variables Inside Functions?