As the function sparkling_footer_info()
uses esc_html__()
and this function runs the esc_html
filter before outputting, you can intercept the output there.
add_filter ('esc_html', 'wpse_245817_esc_html', 100, 2 );
function wpse_245817_esc_html( $safe_text, $text ) {
if ( $safe_text == 'Theme by %1$s Powered by %2$s' ) {
return '';
}
return $safe_text;
}
Maybe you have to adapt the code a little for your own needs, I didn’t test it either.
Related Posts:
- Understanding WordPress child theme custom JS loading
- Need advice on theme customizer and child themes
- Function to return true if current page has child pages
- Proper use of Output Buffer
- List of all theme customizer control types?
- Need help setting default setting value for radio button in theme customizer
- Is it possible to disable a function of a parent theme?
- function_exists call in function.php
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Debugging an error: wp_enqueue_style was called incorrectly
- How do I remove a require_once admin panel from the parent theme from the child theme functions.php?
- How to get the registered sidebar’s name by its id?
- is there a simple way to list every templates / php files used to generate a specific page?
- Dynamically change feature image in customiser
- One button to change all settings in theme customizer?
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Add footer.php to WordPress child theme
- Setting up the child theme so as to enable right-to-left WordPress?
- Design view breaking on Pages
- How to override a non pluggable and non hookable function in a WordPress parent theme?
- How can I loop into two different DIVS without repeating the DIVs
- Removing unnecessary wordpress files
- Remove css styles from specific page
- Overriding a theme redux file in child theme
- How do I list the_tags() into HTML data-attribute
- How to make thumbnail image fit into a div where image dimentions are completely different?
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- What is the fastest way to load PHP functions that are only used in one theme template?
- My Own layout in WooCommerce pages [closed]
- Differences when using the the_time and the_date functions
- Adding tawk.to code just before body tag on functions.php file
- Can’t load WP function into external function
- Trigger popup in a php if/else statement
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- How to style options page in dashboard?
- How to remove the cufon script from Dzonia Lite theme [closed]
- How do I add custom bulk actions to multiple custom post types?
- what is the best practice to add new field to an api route
- Error in custom php function doesn’t exist
- Catchable fatal error: Object of class stdClass could not be converted to string after WP 4.7
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- How to disable controls in theme customizer?
- How do I link a button I created in theme customizer to a function?
- Trying to retrieve post meta
- Is there a way to conditionally check whether a WordPress post title is empty?
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Copyright info change – Corporate Plus Theme PHP [closed]
- WordPress admin-ajax.php
- Use .php file as page instead of wordpress page & template file?
- Use WordPress function in php file
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- get_template_directory adding FTP root folders in urls
- Theme not calling Jquery properly
- Warning: printf(): Too few arguments in helpers.php file
- How do I check or test a WordPress Auto Year Change Script?
- How to make function appear in sentence?
- How to have different site identity logos on each page on Astra Theme [closed]
- Overide Variable in Child Theme
- child parent styles enqueue order
- How to add aria role and schema markup to custom walker container
- get_page_templates only return templates with “home” in the filename
- How to style injected code in header section?
- Is there a hack for using is_page() within the function.php file?
- Show different website layout if no sidebar added
- Child Theme’s Read More Text
- How to make sure relative URL works when site is not on root domain?
- Trying to change featured image from 180×180 to full width on home page
- Getting text from custom field from customizer
- Need help for some PHP code
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- How to change basename url for wp-admin?
- how to replace h1 entry title with h2 in category pages only
- Proper way to remove html code on child theme
- remove_action from parent theme using child theme functions.php
- File from parent theme imported to child theme doesn’t work – any ideas?
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- How can I prevent a shortcode div from extending beyond its boundaries?
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- PHP “warning include_once(): Failed to open stream” Simple HTML DOM in WordPress Child Theme
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- WordPress child theme, creating a custom php template page
- Menu to the right of screen on desktop using Bootstrap 4
- Add Text Area To Child Theme’s Home Page
- Theme editing “post thumbnail” help
- Where can I find the declaration of `$_wp_theme_features`?
- Calling PHP function doesn’t work in index.php
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Removing get_template_part in child theme
- WordPress get_post_meta issue
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- How to add button to top of theme customizer?
- Adding code to the function file
- Adding php within a return statement [closed]
- Load slideshow.css file only if Slideshow is checked / on
- How can I fix my pagination?