This helped me.
wp_localize_script( 'ap-otp-modal', 'ap_otp', [
'logourl' => wp_get_attachment_image_url( get_theme_mod( 'custom_logo' ) , 'full' )
]);
Related Posts:
- Update Option Stored in Multi-Dimensional Array
- Best practices for using the transients API
- $wpdb->insert_id
- Remove profile picture option (and other things) from profile.php (in admin)
- Elementor Fatal error: Class ‘Elementor\Widget_Base’ not found
- How Can I Add a Filter to Class Instance Only?
- Getting old term value with edited_{$taxonomy} | Hook
- Headers already sent error with CSV export plugin
- How to add HTML / Form to an Admin Bar Menu
- Unable to write test cases for a WordPress plugin using PHPUnit and WP-CLI
- Call activation hook multiple times
- Adding custom code into header.php using a plugin
- Two-step login process – Is it possible?
- Calling clean_term_cache() fails when called in the same plugin that creates terms, succeeds when called separately?
- why creating tables using $wpdb is not being executed while installing plugins?
- How to update the language used by wordpress from a plugin
- Is there any background process that I can run from plugin without depending on page hits on a website without affecting page-load speed?
- Woocommerce how to update variable product price programitically?
- Using $wpdb object in a widget
- Unified Approach for Placing Option Pages
- Define a function outside a class and call the function using action or filter hook
- Modifying WordPress plugins
- On plugin deactivation hide its shortcode
- Can I submit a plugin that follows the PSR-2 coding style guide?
- Using wp_filesystem in Plugins to store customizer settings
- Can I use the different settings sections over different pages using the save options group?
- WordPress removing data attributes for scheduled post
- WYSIWYG editor in WP 3.2 plugin
- Verify Nonce returns false – Request Nonce returns correct value
- How do I write a shortcode that opens and closes?
- What is minimum time interval for which a cron be scheduled?
- How to untrash a post only if it was not a draft?
- Can I change header.php of current theme through a plugin function?
- Plugin writing: access file that was just uploaded
- Gutenberg blocks not getting styled on back end
- Writing a plugin which needs to upload files
- Calling is_single() outside the loop
- update woocommere total value on checkout based on selected payment method
- Using WPDB to output raw XML fails because of wp-blog-header.php
- Add a Save Button to Custom Meta Box [duplicate]
- How can I listen to events in Gutenberg block?
- It’s possible to passing a ref to FormTokenField from parent component using forwardRef?
- How to show filters on table when using WP_List_Table
- Add a default WP comment form to forum template
- Gutenberg: import dependency or assign from global variable?
- Following WordPress Markup Is mandatory, got awkward resultyby wordpress standard markup?
- Steps to Update a WordPress Plugin That We Developed
- Admin Posts List (edit.php) by post IDs
- Using WAMP, trying to create a plugin, getting error: You do not have sufficient permissions to access this page
- wp_get_theme Warning: Illegal offset type
- wordpress is adding a second backslash when I use addslashes
- Silently register plugin pages
- Plugin: database creation
- Loading Modernizr (or other JavaScript libraries) for use in a plugin
- How do I remove folder and contents I have created while installing plugin
- How to add a hyperlink to the email content in WordPress?
- Issue on Setting $icon_url Parameter on WP add_menu_page()
- Menu page with minimum capability as ‘Subscriber’ doesn’t allow ‘Admin’ to access it?
- Plugin path comes wrongly
- Catching Form Submission in WordPress Admin Panel
- Filter posts in pre_get_posts order by meta value date (desc or asc)
- How to display the category id along with category name on categories list?
- How to replace settings in WordPress plugin from a theme
- Save temporary registration data
- Activate / Deactivate plugin
- How to validate inputs with filter in register_setting callback
- Plugin Creation: Overriding upload_max_size and post_max_size
- Problems with wierd characters and my plugin
- Serial Number from custom table not appear in woocommerce_email_before_order_table action
- wp_new_user_notifications to notify user and admin about new user registration
- Is it possible to use the MySQL’s ORDER BY FIELD() clause as part of the pre_get_posts hook?
- Why User_login key doesn’t work with wp_update_user()
- How to limit number of category term display in home page grids?
- A question on init and activation hooks
- Always hide a page from the menu
- Is it possible to replace MySQL with JSON files for WordPress
- Add custom html classes to gutenberg wrapper
- Author Meta in Author URL Link
- Update database record in plugin
- get_comment_meta() for a filter hook in a plugin
- form does not generate $_POST request
- Callback function quicktags that uses variable in start tag
- Font Awesome stopped showing icons, shows &# text instead [closed]
- WordPress Plugin Tool Tip Helpers
- Declaring a new woo commerce product type i get this error
- Can I use a hook other than ‘init’ to handle form submissions?
- Managing Custom Designed Content
- Stop theme displaying comments
- Do a summary based on sections in a post
- Plugin as custom page
- Plugin capabilities
- plugin will not offer update even though a new version is available
- Deactivate plugin on registration
- How to filter manage categories listing
- Enqueue Script in custom plugin before other
- How to remove a class [closed]
- Fetch Custom Woocomerce filed data and check the data avialble in Wp-user table as nicname or username using function.php
- How to get locale within WP REST Request?
- How to add extra EXIF data when images are uploaded?
- How to boost WP custom post REST API GET queries by custom taxonomies