This seems odd to me because if you're signing on a user you shouldn't already be signed in... therefore your permissions shouldn't matter. It may be a bit of an odd way of going about it, so that could be causing the issue. Here's the code: function login( $user_name, $password ) { $creds = array(); $creds['user_login'] = $user_name; $creds['user_password'] = $password; $creds['remember'] = false; $user = wp_signon( $creds, true ); if( is_wp_error( $user ) ) { $result = $user; } …
Assuming that my site uses a database through the web service to fetch content, style and other things for my site. Can we make this connection in a way provided by the CMS? A plugin does that? Should we do it ourselves? Thanks for answers.
I am first timer with Wordpress and I would really need help or advice. I have an mobile app service on VPS and client suggested that it would be nice to have singular login info to the App and his sort of related web pages. Now, I can do this in multiple ways, but it seems like best solution would be use the rest api of WP to do the auth work, however after days of research and tries, I …
TL;DR Prevent all access to site apart from admin panel (dashboard) and custom rest API endpoints. I would like to create a web service using WordPress rest api. I want to give access only to my custom endpoints and nothing else, all default WordPress endpoints should always return 403. Frontend doesn't exist for this webs ervice, so maybe aprat from the home page (or even that) no other urls would be available. Admin panel(dashboard) would be ideally limitid to my …
I have checked and read lot of post about one single issue that is far more complicated than it seems. I have a website that uses a lot of videos taken from wwebsite as on the internet ^^ (services like youtube, vimeo, videobuzzy, etc) and we would like to generate on the fly a thumbnail of the embedded video. Each service uses its own API so I should adapt code for each, which it far too much code and I …
When activate "sumo reward points" plugin and run this http://imexleader.com/webservice/login.php?action=login&username=sanjay&password=san123" webservice. It gives me following errors: Warning: call_user_func() expects parameter 1 to be a valid callback, function 's.t.r.r.e.v' not found or invalid function name in /home/imex323/public_html/wp-content/plugins/rewardsystem/inc/class_reward_system_menus.php on line 214 Warning: call_user_func() expects parameter 1 to be a valid callback, function 's.t.r.r.e.v' not found or invalid function name in /home/imex323/public_html/wp-content/plugins/rewardsystem/inc/class_reward_system_menus.php on line 215 Warning: call_user_func() expects parameter 1 to be a valid callback, function 's.t.r.r.e.v' not found or invalid function name …
My blog is total 10 post's, 5 post's with 'job' label and 5 "admit card" label I set condition for 'job' label <b:if cond='data:blog.post.label == "job"'><!-- for label 'job' --><style>.body {width:1200px;}</style></b:if> That is, whenever there is a post index of the job label, then the style (body width) the change
The goal here is to use WordPress as a front-end to create, read, update and delete data which is being pulled from Microsoft Dynamics 365 Business Central through OData Webservices in a JSON format. How would I get started with this? I've got my Odata V4 URL, Business Central 365 username and password but do not know what's next.
i transfered wp hosting to godaddy only the homepage displays i get 404 error when click on other links.. (The domain name is hosted on namecheap tho and i changed name server from the former hosting company to godaddy) but just the homepage displays...
I noticed my shared hosting service have a delayed email sending service. This is not good to serve my WordPress site. Is there a solution for this (eg. plugin) that can plug into another email service such as AWS SES? If so how to do so?
Hi fellow wordpress developers or Web Masters. I would like to ask what are the tools you are using to secure your wordpress websites? Also, what are you ways to prevent wordpress plugin vulnerability from affecting your wordpress websites?
I'm developing a wordpress plugin and need to perform soap calls. After understanding that cURL isn't option (manage to run some code in my browser but can't make it work within the plugin), I'm trying to use SoapClient by php5. the connection seems to be working since i'm able to print out the __getFunctions() var: StatusResponse Status(Status $parameters)" [1]=> string(65) "AdministrationResponse Administration(Administration $parameters)" [2]=> string(74) "FetchPropertyListResponse FetchPropertyList(FetchPropertyList $parameters)" [3]=> string(77) "FetchPropertyGroupResponse FetchPropertyGroup(FetchPropertyGroup $parameters)" [4]=> string(74) "FetchPropertyInfoResponse FetchPropertyInfo(FetchPropertyInfo $parameters)" [5]=> string(98) …
I am interested in a building a web app that displays, for every new visitor, a specific set of questions to be answered. The set of questions to be displayed are selected from a pool of database and are not supposed to be the same for every visitor. More precisely, the questions are selected based on the set of answers already received from previous workers. For e.g., if the goal is to get only n answers (from n different visitors) …
I've got three parked domains configured to use my WordPress Multisite installation. No problems with the configurations there. I can serve up three independent WordPress blogs at site1.com, site2.com, site3.com. All WordPress files are located in my web root at /public_html. What I'd like to do is add a completely separate service to one of my sites. For example, let's say I want to run the Foo Service that I've installed in a subdirectory of my web root (public_html/foo_service), and …
I'm working on relaying the information that the formcraft plugin dumps into a GET web api method. The information from the formcraft plugin is saved into the variable $_REQUEST. Formcraft calls the handler.php when submitting a form and this is the code (within the handler.php) I'm currently working with: <?php $url = 'http://x.x.x.x/Get_VacationRequest/'; $jsonData = json_encode($_REQUEST); $response = wp_remote_get( $url, $jsonData ); ?> I'm debugging my WEB APIs and waiting for a request but so far nothing. Any help would …
I'm building a WordPress website that will have around 50 smaller sites in it; either a state with each county being the smaller site. Each site will be managed by a different person. I've just started with multisite and was wondering if this is the best way to go or if there is a better way to do this.
I know that there is a JSON API Plugin and I think that is what I want with the major exception being that it only outputs JSON and there is no configuration that I can see for outputting XML. Is there an equivalent for an XML webservice or can I output it myself through some built-in WP functionality? I'd like to output XML because I am looking to feed the data into a third party search engine tool that can …
I need to show popular & recent posts in another PHP web site under the same domain. Example: www.example.com -> main website (php, mysql) www.example.com/blog -> WordPress blog Need to show popular, recent posts of blog in the main website. Please note that blog and main website use two separate database. I decided to use the WP REST JSON API plugin for that. Now I have different question. I use following code to retrieve last week popular post. What I …
I am working on the integration of an Amazon Webstore (Amazon Checkout) on a WordPress site using Amazon Documentation here. Has been a while since I worked with enqueueing external JScripts. I need to load two scripts from Amazon. I added some code to functions.php, but I seem to have made a mistake and I keep on getting errors such as: TypeError: 'undefined' is not a function (evaluating '$(jQuery(document).find("#globalParameters"))'). On merchant_cart.js:5 Here is the code: function img_scripts_with_jquery() { // Register …