This is the solution for my question
add_action('customize_register', function ($wp_customize) {
$wp_customize->add_section('copyright_extras_section', array(
'title' => 'Copyright Text Section'
));
//adding setting for copyright text
$wp_customize->add_setting('text_setting', array(
'default' => 'Default Text For copyright Section',
));
$wp_customize->add_control('text_setting', array(
'label' => 'Copyright text',
'section' => 'copyright_extras_section',
'type' => 'text',
));
});
Related Posts:
- Woocommerce get cart total price in a number format [closed]
- How to tell if Jetpack’s Photon is active?
- Is it good practice to remove redundant plugins and themes?
- What is the purpose of the “Hello Dolly” plugin?
- How can I include a setting that has a variable number of values in a settings page using register_setting?
- change plugin shortcode function [closed]
- How can I retrieve data within my widget
- woocomerce variations [closed]
- Whats the difference between Page Builder Plugins and Theme Builder Softwares? [closed]
- How to use load_plugin_textdomain from within a theme
- Syntax Highlighting Plugins and 3.2.1
- Problem Building a Simple Google Maps Plugin
- Is there a way to alter the order in which the plugins appear in the page?
- Display content from custom post type if match to main post category
- woocommerce_order_status_completed action hook not working [closed]
- How to update billing_email when user_email is updated [closed]
- Plugin Using get_the_content Causing Issues With Tag
- Multisite custom user activation emails – html
- Wp List Table – wpdb results are not displaying
- Change plugin main file name (that is currently in the repo)
- Edit Yoast SEO breadcrumbs output [closed]
- Woocommerce Payments and App Not Syncing
- Query all customers/users and check for duplicate information
- Hide Elementor Templates Menu from Admin [closed]
- How to remove plugin metaboxes from edit.php
- WordPress wp-admin/network/plugin-install
- How to pull email and name from Flamingo plugin
- creating a custom shop page display on archive woocommerce
- Can’t delete the two native plugins of WordPress
- How I can internationalize variables within the function _e () __ (), etc?
- How to put Word documents online so they can be downloaded, printed and read via a web page? [closed]
- How to add single function for all WordPress hooks
- How can I show a different theme for admin users? WP 3.8+
- add_action into another add_action not working
- General questions re: WordPress and WP plugins [closed]
- populating a form field with output from a custom plugin function
- Fetch Data from other website in wordpress (screen scraping)
- shortcode not return any thing in Gutnburg
- Add User Role: Pre-saved in User-Meta [SOLVED]
- How do I add a plugin dependency to my customized theme?
- How WordPress core manage the plugin installation
- Flickering sidebar when scrolling page [closed]
- Shortcode not working – quotes seems strange
- Using custom fields for image alt and title
- Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]
- Add action to custom Function
- “Allowed memory size” problem [closed]
- Hook Scripts and Styles in WordPress
- count the number of views of a post excluding own views
- Remove updates text on plugin or themes list page
- How to turn off automatic operation for Nivo Slider?
- WordPress slider that allows image, headline, text, and button?
- Shortcode not displaying HTML within the function
- Quiz with complex output/result
- Using Class loader in WordPress boilerplate
- Images not appearing after applying Smush
- Identify User Language, Redirect to the corresponding page and Save the chosen language as Cookie
- Change the address of the music player if not available
- WordPress disable direct access of files in WordPress installation path
- disable plugin activation on no multisite
- $wpdb->insert not working inside save_post tag
- How to check for already existing plugin versions on activation? and prevent errors
- update_post_meta is not working for me when I use e.preventDefault for update button
- jQuery works instead of $
- WordPress create thumbnails on demand
- How user can download a specific file?
- How to get data from a private API and add it to wordpress pages
- Scheduled cron event removed from list automatically after sometime
- Geotargeting plugins never work
- Plugin management with my custom plugin
- How to allow editors to only edit certain categories?
- How to pass value from WordPress to Javascript
- 504 Timeout gateway when trying to pay for an order in Woocommerce. What else can I do?
- How do I create a state of “don’t assign anything to variable” if WP_Error throws an error?
- Get not the full path
- Plugin communication between sites that use it?
- Being hacked. Is there a list of WordPress security holes I can check against?
- Is a Virus detection plugin necessary?
- WordPress 4.1 plugin only save 1 field to database
- How to run my plugin only when the whole page is sent?
- WordPress custom posttype meta values doesnot save
- Why tinyMCE.editors doesnt work on tinyMCE
- Assigning a custom post type to a custom page
- WordPress include scripts and style in plugin page
- get_option include in my adsense
- Automatically send an email to list when blog is updated
- woocommerce product categories in menu [closed]
- Book plugin to record books read and write my own reviews [closed]
- How can I make a website with dynamic features with wordpress?
- Advanced Ajax Page Loader and Masonry Grid
- On the same site, how do I send data from a plugin file to a theme file?
- How to add custom html to the Media > Attachment Details modal?
- Unable to access WPadmin, website down
- ‘Active lotteries’ only custom query for woocommerce lottery plugin and elementor
- Conflicting plugins break site
- Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
- How to disable pagination in WordPress’ API results?
- How to change the version of block.js and plugin to the same of Package.json?
- Warning “Attempt to read property ‘feeds’ on null” using post update function
- How to Remove Default Category Metabox in Custom Post Types