You could store it as variables
$account_id = 'your_account_id';
$password = 'your password';
someFunction($account_id, $password);
Or store it in {$table_prefix}_options
table and retrieve it by get_option
function
$account_id = get_option('account_id');
$password = get_option('password');
someFunction($account_id, $password);
You could save this values, for example from admin panel, by update_option
function.
Second option is better, because you can share your functions.php
with others and they will not know your credentials. It is also important, that password shouldn’t be stored as plain text.
Related Posts:
- Is it possible to use a forgot password url filter?
- Login using the password from protected pages
- password protected post policy
- Force to use STRONG users password and implement rule to prevent REUSE [closed]
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- Storing password (functions.php)
- the_password_form functions not working together
- Auto log in hook is requiring a page refresh
- Login cookies blocked after customizing hashing method
- Lost Your password Hook Not Showing Up
- How to include a hyperlink in the body text of a custom password protected form?
- How to add function to custom fields when page/post has a password?
- Mail function not working with user accounts
- Override default password nag in WordPress
- get php variable from functions php and echo it in theme template files [closed]
- How to influence the information displayed on widget inside wp-admin
- Remove Container Element From wp_nav_menu() Markup
- WordPress function like is_category for subcategory? is_subcategory?
- Using a private method as an action callback from within a class
- Auto close (hide) custom metabox / set default state
- Does WordPress Development Mode Exist (with not minified JS)?
- WP_Query in functions.php
- wp_delete_user with username
- what is the meaning of settings_fields()
- Organize functions.php
- How to activate “Description” metabox for menu item programmatically?
- Change labels on ‘Nickname’ and ‘Biographical Info’ in user-edit.php
- How to set child post categories to parent post categories when updating parent post?
- get excerpt without images
- Adding WooCommerce to a Custom Theme – not working [closed]
- WooCommerce add_action hook results in 500 error
- Advice: Template structure – php blocks in sidebar or someting else?
- Help to resolve Syntax error, unexpected ‘endwhile’ (T_ENDWHILE) [closed]
- Changing itemprop from logo to image on custom logo?
- wp_get_post_terms() returns WP_Error in functions.php but in template it works
- Removing the first image in content
- Move jQuery and Migrate to footer?
- Make menu structure match page heirarchy on page parent change
- Global functions on WPMU
- Change Rating range in Link Manager
- str_replace function in theme
- is_account_page() change to page slug
- Function call via ajax – can’t figure it out?
- How to add nav menu items to a specific position within a menu
- woocommerce: change default setting > is_sold_individualy function
- Help with WP gallery function, wrap gallery in div
- set_post_thumbnail when user is not logged in
- WordPress Menuing Question :focus
- call of javascript function to external url always blocked by cors
- Can you put a condition on add_image_size() depending on the width of the uploaded image?
- What WordPress function to use to get meta value by using meta keys?
- Create a custom taxonomy that will be used to create and filter markers in a Google Map
- Adding an external HTML link to a post thumbnail
- Overwriting the menu break points of twentysixteen in child theme
- Is there a WP function to get taxonomy name from taxonomy_term_id?
- Passing User_Fields to Contact form 7 [duplicate]
- How to create an onclick event on an image in a post?
- Help With Creating Shortcode
- How can I use Woocommerce $product->get_attribute in functions.php? (if at all)
- How to set default post editor based on role?
- How to hide image-url if no attachment?
- Hide thumbnail on search results when thumbnail not set – using Oxygen
- How to properly refresh page after form action?
- Problem enqueuing scripts on not single posts
- referencing the current user in a page i created in wordpress
- is_main_query() always returning false
- Undefined variable issue for wp_get_attachment_image_url
- Counting posts and trigger it [closed]
- ACF Flexible in TCPDF
- modifying every other element’s class inside while loop
- Adding Custom Body Class for Page: Shop
- Change ‘Categories’ to ‘Topics’
- Is it possible to use ‘wp_insert_post’ function within a for loop?
- save_post function keeps triggering: Warning: array_map(): Argument #2 should be an array… when restoring from trash
- More than one search results page template for two searches on site
- How do i create a search option for pdf’s only
- Restoring pages in wordpress
- Redirect after login to current URL
- Restrict certain roles registrations by domain
- Replacing term/taxonomy archive pages with search queries
- Return ACF Field value function
- Best way to add image to recent posts widget?
- Different body image backgrounds on different pages, posts and categories
- Language switcher for subdomains
- Function to draw random image from specified category destroys site logic – why?
- Issues with add_query_arg() not passing a variable
- Add Function For Instances of Custom Text in Multiple Category IDs to display in post content
- Move captions under gallery images in twenty fourteen theme
- Force changing the Site Title and add link
- create submenu page – error function not found or invalid function name
- How to add a class name to the ancestor of a post?
- Undefined offset: 2
- Retrive post by tags PHP code
- Sorting date results from a query
- Using is_plugin_active within functions.php
- Button generate a random URL [closed]
- Add custom css to theme
- How do I add functionality to images?
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- Problem with removing characters “<” – WpAllImport