Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9289681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:14:24+00:00 2026-06-18T20:14:24+00:00

I am creating a wordpress plugin and I would like to enable the user

  • 0

I am creating a wordpress plugin and I would like to enable the user to use images from the media library. For example: the »Choose Image« button in the »header« section of Theme configuration does exactly what I am looking for.

Is there any wordpress method I can call to generate such a button?

Greetings philipp

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:14:25+00:00Added an answer on June 18, 2026 at 8:14 pm

    what you try to accomplish is not clear,
    using all the images is one thing and give them an option to use wordpress uploader is one thing.

    give them the last option is not recommended because they can abuse your system without control.

    to see all the images you can use this function, return an array :

    function get_all_images(){
        $args = array(
            'post_type' => 'attachment',
            'post_mime_type' =>'image',
            'post_status' => 'inherit',
            'posts_per_page' => -1,
        );
        $query = new WP_Query( $args );
        $images = array();
        foreach ( $query->posts as $image) {
            $images[]= wp_get_attachment_url($image->ID);
        }
        return $images;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a WordPress plugin, which I would like to make as customizable
So basically I'm creating wordpress themes for Themeforest, and I would like to get
I'm creating a new plugin for WordPress that requires an outside website to use
I'm creating a wordpress plugin to fetch data from another website, It will be
I am creating a WordPress widget plugin that displays different types of social media
I'm creating a WordPress plugin that allows a user to select one of several
I am creating my first wordpress plugin. one of the questions i have is
I'm creating a plugin for wordpress and I need to check if a post
I'm creating a Wordpress plugin and, being a newbie in the development on this
I'm writing a Wordpress plugin which injects a grid of images just above the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.